UIAlertController使用

UIAlertController是ios8.0推出的,取代UIAlertView(9.0后废弃)和UIActionSheet(8.3后废弃)。
UIAlertController使用:
使用该方法创建

  • (instancetype)alertControllerWithTitle:(nullable NSString *)title message:(nullable NSString *)message preferredStyle:(UIAlertControllerStyle)preferredStyle;
  • (void)addAction:(UIAlertAction *)action;

转发:http://www.jianshu.com/p/8025e598e9fd

你可能感兴趣的:(UIAlertController使用)