首页 > 移动平台 > 详细

iOS 警告窗口

时间:2016-06-03 15:39:27      阅读:192      评论:0      收藏:0      [点我收藏+]

- (IBAction)buttonPressed:(id)sender {
    
    NSDate *date=self.datePicker.date;
    NSString *message=[[NSString alloc]initWithFormat:@"The date and time you select is %@",date];
    UIAlertController *alert=[UIAlertController alertControllerWithTitle:@"Date and Time selected" message:message preferredStyle:UIAlertControllerStyleAlert];
    UIAlertAction *action=[UIAlertAction actionWithTitle:@"That‘s so true!" style:UIAlertActionStyleDefault handler:nil];
    
    [alert addAction:action];
    [self presentViewController:alert animated:YES completion:nil];
}

 

活活累死, 比安卓负责两万倍, 安卓烤土司, 多好...

iOS 警告窗口

原文:http://www.cnblogs.com/Montauk/p/5556480.html

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