Latest 1.0.2
Homepage https://github.com/WangWenzhuang/ZKAlertViewSwift
License MIT
Platforms ios 8.0, requires ARC
Authors

Build Status
license
CocoaPods
platform
platform

ZKAlertViewSwift 封装了 UIAlertView,简单易用,Block 回调,丢掉各种 tag。

特点

  • 显示一个按钮,没有 Block 回调,主要用于提示信息

  • 显示一个按钮,包含 Block 回调

  • 显示多个按钮,包含 Block 回调

安装

CocoaPods

pod 'ZKAlertViewSwift'

快速使用

Swift:

import ZKAlertViewSwift
  ZKAlertViewSwift.showAlertView(
    title: "ZKAlertView",
    message: "封装 UIAlertView,简单易用",
    clickAtIndexBlock: { (alertView, buttonIndex) in print("索引:(buttonIndex)") }, 
    cancleButtonTitle: "取消", 
    otherButtonTitles: "按钮1", "按钮2")

运行环境

  • iOS 8+
  • 支持 armv7/armv7s/arm64

Latest podspec

{
    "name": "ZKAlertViewSwift",
    "version": "1.0.2",
    "summary": "u5c01u88c5 UIAlertViewuff0cu7b80u5355u6613u7528uff0cBlock u56deu8c03uff0cu4e22u6389u5404u79cd tagu3002",
    "homepage": "https://github.com/WangWenzhuang/ZKAlertViewSwift",
    "license": {
        "type": "MIT"
    },
    "authors": {
        "WangWenzhuang": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/WangWenzhuang/ZKAlertViewSwift.git",
        "tag": "1.0.2"
    },
    "source_files": "ZKAlertViewSwift/*.swift",
    "requires_arc": true,
    "pod_target_xcconfig": {
        "SWIFT_VERSION": "3.0"
    },
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This