[alert addButtonWithTitle:@"做一些很酷的事" block:^{
// 這個按鈕被點擊時,這里的代碼將會被執(zhí)行
}];
大概就是這么用的
不用在糾結(jié)alertview的代理方法或者是alertcontroller一個一個的action了 网严,這個直接封裝好了。
github:
https://github.com/gpambrozio/BlockAlertsAnd-ActionSheets
[alert addButtonWithTitle:@"做一些很酷的事" block:^{
// 這個按鈕被點擊時,這里的代碼將會被執(zhí)行
}];
大概就是這么用的
不用在糾結(jié)alertview的代理方法或者是alertcontroller一個一個的action了 网严,這個直接封裝好了。
github:
https://github.com/gpambrozio/BlockAlertsAnd-ActionSheets