现在UIAlert上只有一个确定按钮 ,点击这个确定按钮 不让它消失 ,怎么处理?
1条回答
- oyljerry 2016-04-25 06:16关注
继承,生成一个子类,自己来处理
@implementation MyAlertView -(void)dismissWithClickedButtonIndex:(NSInteger)buttonIndex animated:(BOOL)animated { if (buttonIndex should not dismiss the alert) return; [super dismissWithClickedButtonIndex:buttonIndex animated:animated]; } @end
解决 无用评论 打赏 举报