CocoaPods trunk is moving to be read-only. Read more on the blog, there are 17 months to go.

WYAlertController 0.1.0

WYAlertController 0.1.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Feb 2016

Maintained by WuYikai.



  • By
  • wuyikai

WYAlertController是干什么的

统一系统控件UIAlertViewUIActionSheetUIAlertController,解决UIAlertController无法在iOS8以下使用的问题。

如何使用

  • 手动导入:

    • WYAlertController文件夹拖拽到项目中
    • 导入头文件#import "WYAlertController"
  • 使用Cocoapod安装: 在Podfile文件中加入一行pod 'WYAlertController', '~> 0.0.1'

封装逻辑

参考系统控件UIAlertController的API,将UIAlertViewUIActionSheetUIAlertController封装到一起。iOS8以上会调用UIAlertController,以下会调用UIAlerView或者UIActionSheet