码迷,mamicode.com
首页 > 移动开发 > 详细

ios kaifa

时间:2016-04-24 06:23:34      阅读:248      评论:0      收藏:0      [点我收藏+]

标签:

弹窗提示 

技术分享

 

 {
        ////ios 7 弹窗
//    UIAlertView *alert1=[[UIAlertView alloc]
//        initWithTitle:@"tishi"
//        message:@" ni shu ru de zhi bu zhengque"
//       delegate:nil
//       cancelButtonTitle:@"qu xiao"
//                         otherButtonTitles:nil, nil];
      // [alert1 show];
       
        //ios 8 的弹窗
        UIAlertController *alert2=[UIAlertController alertControllerWithTitle:@"提示" message:@"你输入的值不正确!" preferredStyle:UIAlertControllerStyleAlert];
        [alert2 addAction:[UIAlertAction actionWithTitle:@"取消" style:UIAlertActionStyleCancel handler:nil]];
        [self presentViewController:alert2 animated:NO completion:nil];

 

ios kaifa

标签:

原文地址:http://www.cnblogs.com/laopo/p/5426251.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!