本篇文章主要介绍了"UIAlertView提示框自动消失",主要涉及到方面的内容,对于IOS开发感兴趣的同学可以参考一下:
UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"" message:@"感谢您提交宝贵意见,我...
UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"" message:@"感谢您提交宝贵意见,我们的产品经理会及时跟您联系~" delegate:self cancelButtonTitle:@"确认" otherButtonTitles:nil, nil];
[alert show];
//处理耗时线程dispatch_async(dispatch_get_global_queue(0, 0), ^{
[NSThread sleepForTimeInterval:10];//休眠10秒//通知主线程更新uidispatch_async(dispatch_get_main_queue(), ^{
[alert dismissWithClickedButtonIndex:0 animated:YES];
});
});
版权声明:本文为博主原创文章,未经博主允许不得转载。
以上就介绍了UIAlertView提示框自动消失,包括了方面的内容,希望对IOS开发有兴趣的朋友有所帮助。
本文网址链接:http://www.codes51.com/article/detail_160910.html
相关图片
相关文章