我需要帮助以编程的方式解散UIAlertView。 目前我有这个:
UIAlertView *alert1 = [[UIAlertView alloc]initWithTitle:@"title" message:@"message" delegate:nil cancelButtonTitle:nil otherButtonTitles:nil];
然后稍后我调用这个:
[alert1 dismissWithClickedButtonIndex:0 animated:NO];
但是没有任何反应。
dismissWithClickedButtonIndex
" 时,"alert1
" 是否为非空值? - Michael Dautermannshow
和dismiss
吗?这样做不会起作用,因为show
需要时间来执行。 - vakio