zoukankan      html  css  js  c++  java
  • UIAlertView' is deprecated: first deprecated in iOS 9.0

      UIAlertController * cancleAlertController = [UIAlertController alertControllerWithTitle:nil message:@"你确定退出登录?" preferredStyle:UIAlertControllerStyleAlert];

        

    //    第一种添加方法

        [cancleAlertController addAction:[UIAlertAction actionWithTitle:@"取消" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {

            

            NSLog(@"点击取消");

            

        }]];

      //    第二种添加方法

        UIAlertAction * otherAction = [UIAlertAction actionWithTitle:@"确定" style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) {

            NSLog(@"点击确定");

            

        }];

        

        [cancleAlertController addAction:otherAction];

        //弹出视图

        [self presentViewController:cancleAlertController animated:YES completion:nil];

  • 相关阅读:
    bzoj 2527: [Poi2011]Meteors 整体二分
    bzoj 2738 矩阵乘法
    bzoj 3110 K大数查询
    bzoj 3262 陌上花开
    cogs 577 蝗灾 CDQ分治
    bzoj 1101 zap
    bzoj 2005
    bzoj 3518 Dirichlet卷积
    bzoj 1257
    最优贸易 [NOIP 2009]
  • 原文地址:https://www.cnblogs.com/KiVen2015/p/5391661.html
Copyright © 2011-2022 走看看