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

ZKAlertViewSwift 1.1

ZKAlertViewSwift 1.1

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Sep 2017
SwiftSwift Version 4.0
SPMSupports SPM

Maintained by WangWenzhuang.



  • By
  • WangWenzhuang





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

特点

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

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

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

安装

快速使用

Swift:

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

运行环境

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