首页 > 其他 > 详细

UIAlertView

时间:2015-11-07 10:39:49      阅读:156      评论:0      收藏:0      [点我收藏+]

 

    UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"提示" message:@"确定吗?" delegate:self cancelButtonTitle:@"cancel" otherButtonTitles:@"ok", nil];

    [alertView show];

 

实现委托:

- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex

{

    NSLog(@"click button index is: %i", buttonIndex);

}

 

UIAlertView

原文:http://www.cnblogs.com/xiangjune/p/4944595.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!