Is it possible to NOT dismiss a UIAlertView

前端 未结 5 2053
礼貌的吻别
礼貌的吻别 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:15

    In my opinion: There's no reason to keep alertView. Even if you wanna keep it, just think about "re-show" it, by keeping a reference, then call [alertView show] ==> NO NEED TO SUBCLASS ANYTHING. Good news, huh?

提交回复
热议问题