美文网首页iOS Developer
一个支持block的弹出框

一个支持block的弹出框

作者: seky | 来源:发表于2016-07-15 17:54 被阅读75次

[alert addButtonWithTitle:@"做一些很酷的事" block:^{

// 这个按钮被点击时,这里的代码将会被执行

}];

大概就是这么用的

不用在纠结alertview的代理方法或者是alertcontroller一个一个的action了 ,这个直接封装好了。

github:

https://github.com/gpambrozio/BlockAlertsAnd-ActionSheets

相关文章

网友评论

    本文标题:一个支持block的弹出框

    本文链接:https://www.haomeiwen.com/subject/ziqwrttx.html