Latest 0.1.0
Homepage https://github.com/DouKing/WYAlertController
License MIT
Platforms ios 7.0, requires ARC
Authors

WYAlertController是干什么的

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

如何使用

  • 手动导入:

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

封装逻辑

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

Latest podspec

{
    "name": "WYAlertController",
    "version": "0.1.0",
    "summary": "u7edfu4e00`UIAlertView`u3001`UIActionSheet`u3001`UIAlertController`",
    "homepage": "https://github.com/DouKing/WYAlertController",
    "license": "MIT",
    "authors": {
        "wuyikai": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/DouKing/WYAlertController.git",
        "tag": "0.0.2"
    },
    "source_files": [
        "WYAlertController/WYAlertController",
        "WYAlertController/WYAlertController/**/*.{h,m}"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This