测试已测试 | ✗ |
Lang语言 | SwiftSwift |
许可协议 | MIT |
发布最新发布 | 2016年11月 |
SwiftSwift版本 | 3.0 |
SPM支持SPM | ✗ |
由nukesk3维护。
一个容易定制的AlertView库,它是用Swift编写的。
下载并将 /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 文件。