dismissing a UIAlertView programmatically

后端 未结 5 1569
孤城傲影
孤城傲影 2021-02-13 17:12

I need help on dismissing a UIAlertView programmatically. Currently I have this

UIAlertView *alert1 = [[UIAlertView alloc]initWithTitle:@\"title\" message:@

5条回答
  •  花落未央
    2021-02-13 17:18

    You can use the delegate method -alertView:didDismissWithButtonIndex: instead—it gets called once the alert view’s been removed from the screen, OR better approach is , use a background thread, e.g. with -performSelectorInBackground:withObject:, to handle whatever processing you need to do.

提交回复
热议问题