ios kaifa

弹窗提示 

 

 {
        ////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];

 

posted @ 2016-04-24 02:48  每天进步一点点!  阅读(234)  评论(0编辑  收藏  举报