mirror of
https://github.com/wu736139669/ASHUIAlertView.git
synced 2026-08-05 05:54:55 +00:00
12 lines
465 B
Markdown
12 lines
465 B
Markdown
# ASHUIAlertView
|
|
|
|
可直接调用这个方法,直接使用block代替之前的delegate回调.
|
|
|
|
比传统的UIAlertView好用的地方就是block代替了delegate.
|
|
|
|
+ (id)showAlertWithTitle:(NSString *)title
|
|
message:(NSString *)message
|
|
completionBlock:(void (^)(NSUInteger buttonIndex, EMAlertView *alertView))block
|
|
cancelButtonTitle:(NSString *)cancelButtonTitle
|
|
otherButtonTitles:(NSString *)otherButtonTitles, ...;
|