Cod*_*Guy 0 iphone uiviewcontroller uialertview ipad ios
我有一个UIAlertView与以下委托方法:
- (void)alertView:(UIAlertView *)alertView willDismissWithButtonIndex:(NSInteger)buttonIndex {
Run Code Online (Sandbox Code Playgroud)
但我有一个问题.在那个方法中,我做了一些逻辑并执行一些代码,这些代码需要花费很少的时间.在我做所有这些之前,我想解除alertView.我想解除该方法最顶端的警报视图.这样,当用户点击该alertView一个按钮,应用程序似乎并不而代码的下一行执行冻结一秒钟.
Sam*_*ten 12
要以编程方式解除警报,请执行以下操作:
/* Your Processing Code Here */
[theAlertView dismissWithClickedButtonIndex:0 animated:YES];
[theAlertView dismissWithClickedButtonIndex:0 animated:YES]; 将使警报消失
| 归档时间: |
|
| 查看次数: |
8610 次 |
| 最近记录: |