NKAlertView 0.1.2

NKAlertView 0.1.2

测试已测试
Lang语言 SwiftSwift
许可协议 MIT
发布最新发布2016年11月
SwiftSwift版本3.0
SPM支持SPM

nukesk3维护。



NKAlertView

一个容易定制的AlertView库,它是用Swift编写的。

Icon Icon Icon

安装

手动安装

下载并将 /NKAlertView 文件夹拖放到您的项目中。

如何使用

let alert = NKAlertView(title: "title",description: "This is a more descriptive info text.",image: UIImage(named: "image.png"),style: .dark)

alert.addAction(NKAlertAction(title: "Cancel", style: .cancel, action: { () -> Void in
  print("Cancel")
}))

alert.addAction(NKAlertAction(title: "OK", style: .default, action: { () in
  print("OK")
}))

self.present(alert, animated: true, completion: nil)

贡献

欢迎提供功能请求或错误报告反馈。

许可协议

NKAlertView 在 MIT 许可证下提供。有关更多信息,请参阅 LICENSE 文件。