UIAlertController参考UIAlertController简介 它用于向用户显示一个警告信息,从iOS 8.0开始,它替代了UIActionSheet和UIAlertView。 参考 在iOS 8中使用UIAlertController