ios 怎么让uialertview不消失
展开全部
不要初始化按钮咯,
UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"正在加载…"
message:nil
delegate:nil
cancelButtonTitle:nil
otherButtonTitles:nil, nil];
//展示
[alert show];
//消失
[alert dismissWithClickedButtonIndex:0 animated:YES];
UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"正在加载…"
message:nil
delegate:nil
cancelButtonTitle:nil
otherButtonTitles:nil, nil];
//展示
[alert show];
//消失
[alert dismissWithClickedButtonIndex:0 animated:YES];
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询