标签:objective-c uialertview dismiss
子类化UIAlertView,复写方法- (void)dismissWithClickedButtonIndex:(NSInteger)buttonIndex animated:(BOOL)animated;
/// UIAlertView subclass which can't be dismissed when buttons clicked. @interface FixAlertView : UIAlertView @end
@implementation FixAlertView - (void)dismissWithClickedButtonIndex:(NSInteger)buttonIndex animated:(BOOL)animated { // [super dismissWithClickedButtonIndex:buttonIndex animated:animated]; return; } @end
参考自:http://stackoverflow.com/questions/2051402/is-it-possible-to-not-dismiss-a-uialertview/2051969#2051969
标签:objective-c uialertview dismiss
原文地址:http://blog.csdn.net/tounaobun/article/details/45055719