现在UIAlert上只有一个确定按钮 ,点击这个确定按钮 不让它消失 ,怎么处理?
继承,生成一个子类,自己来处理
@implementation MyAlertView
-(void)dismissWithClickedButtonIndex:(NSInteger)buttonIndex animated:(BOOL)animated {
if (buttonIndex should not dismiss the alert)
return;
[super dismissWithClickedButtonIndex:buttonIndex animated:animated];
}
@end