相关疑难解决方法(0)

使UIAlertView按钮触发功能按下

目前我使用以下代码来呈现UIAlertView:

UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Today's Entry Complete"
                        message:@"Press OK to submit your data!" 
                       delegate:nil 
              cancelButtonTitle:@"OK" 
              otherButtonTitles: nil];
    [alert show];
    [alert release];
Run Code Online (Sandbox Code Playgroud)

如何获得它,以便当按下"确定"时,它会触发一个功能,比方说 -(void)submitData

iphone xcode objective-c uialertview

12
推荐指数
2
解决办法
3万
查看次数

UITableViewCell不使用弃用方法initWithFrame:reuseIdentifier

我已经阅读了Loren关于为UITableViewCell绘制自己内容的文章.但是,他使用的是不推荐使用的方法:initWithFrame:reuseIdentifier:在UITableViewCell上已弃用.

如何在不使用的情况下让他的榜样上班initWithFrame:reuseIdentifier

uitableview ios

9
推荐指数
1
解决办法
1万
查看次数

标签 统计

ios ×1

iphone ×1

objective-c ×1

uialertview ×1

uitableview ×1

xcode ×1