iOS一行代码搞定自定义AlertView
2021-10-03 本文已影响0人
Turboks
效果图走一走:
![](https://img.haomeiwen.com/i2361104/dc4d1eb3831633ec.gif)
使用方式:
pod 'KSAlertView'
举例使用,单按钮Alert:
[[[KSAlertView alloc] initWithTitle:@"Title" message:@"Message" otherBtnTitle:@"other" clickIndexBlock:^(NSInteger index) {
}]show];
代码链接,可以下载下来修改成自己喜欢的样式,随意使用: