WYAlertController
是做什么的统一系统控件UIAlertView
、UIActionSheet
、UIAlertController
,解决UIAlertController
在 iOS8 以下无法使用的问题。
手动导入
WYAlertController
文件夹拖放到项目中#import "WYAlertController"
使用 Cocoapod 安装:在 Podfile
文件中添加一行 pod 'WYAlertController', '~> 0.0.1'
参考系统控件UIAlertController
的 API,将UIAlertView
、UIActionSheet
、UIAlertController
封装在一起。iOS8 以上会调用 UIAlertController
,以下会调用 UIAlertView
或者 UIActionSheet
。