加入以下内容进行版本判断 if ([[[ UIDevice currentDevice ] systemVersion ] floatValue ] >= 8) { 再添加 UIAlertController 的相关内容 要不然苹果8 以下的手机会运行不了 } else { UIAlertView内容 }