zoukankan      html  css  js  c++  java
  • UIButton 用法

    1 .h

    -(IBAction) buttonClick:(id)sender;

    2 .m

    -(IBAction) buttonClick:(id)sender

    {

        UIButton *button=(UIButton *)sender; //UIButton *button[[UIButton alloc] init]];

        NSString *title=[NSString stringWithFormat:@"Button tag is %d",button.tag];

        NSString *message=[button currentTile];

        UIAlertView *alert=[[UIAlertView alloc] initWithTitle:title message:message delegate:self cancelButtonTitle:@"Ok" otherButtonTitles:nil];

       [alert Show];

       [alert release]; 

    3 run result:

  • 相关阅读:
    [日料探店] 食一料理
    工地英语
    C++20协程解糖
    C++20协程解糖
    C++20协程解糖
    单表操作
    数据库查询语句罗列
    数据库简易介绍
    mysql的常用操作
    css基础
  • 原文地址:https://www.cnblogs.com/csj007523/p/2576457.html
Copyright © 2011-2022 走看看