UIAlertController在8以下不支持

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

} else {

UIAlertView内容
}
原文地址:https://www.cnblogs.com/yuhaojishuboke/p/5155862.html