Is it possible to NOT dismiss a UIAlertView

前端 未结 5 2052
礼貌的吻别
礼貌的吻别 2020-11-30 09:42

The UIAlertviewDelegate protocol has several optional methods including:

- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonInd         


        
5条回答
  •  自闭症患者
    2020-11-30 10:21

    #import "MLAlertView.h"
    
    @implementation MLAlertView
    
    
    -(void)dismissWithClickedButtonIndex:(NSInteger)buttonIndex animated:(BOOL)animated {
    }
    
    -(void)dismissNow:(NSInteger)buttonIndex  {
         [super dismissWithClickedButtonIndex:buttonIndex animated:YES];
    }
    

提交回复
热议问题