您现在的位置是:主页 > news > 环保东莞网站建设技术支持/外贸营销型网站设计
环保东莞网站建设技术支持/外贸营销型网站设计
admin2025/4/19 17:58:32【news】
简介环保东莞网站建设技术支持,外贸营销型网站设计,数据库和网站开发,竞价托管一般多少分享一下我老师大神的人工智能教程。零基础!通俗易懂!风趣幽默!还带黄段子!希望你也加入到我们人工智能的队伍中来!https://blog.csdn.net/jiangjunshow- (void)timerFireMethod:(NSTimer*)theTimer//弹出框{ UIAle…
环保东莞网站建设技术支持,外贸营销型网站设计,数据库和网站开发,竞价托管一般多少分享一下我老师大神的人工智能教程。零基础!通俗易懂!风趣幽默!还带黄段子!希望你也加入到我们人工智能的队伍中来!https://blog.csdn.net/jiangjunshow- (void)timerFireMethod:(NSTimer*)theTimer//弹出框{ UIAle…
分享一下我老师大神的人工智能教程。零基础!通俗易懂!风趣幽默!还带黄段子!希望你也加入到我们人工智能的队伍中来!https://blog.csdn.net/jiangjunshow
- (void)timerFireMethod:(NSTimer*)theTimer//弹出框{ UIAlertView *promptAlert = (UIAlertView*)[theTimer userInfo]; [promptAlert dismissWithClickedButtonIndex:0 animated:NO]; promptAlert =NULL;}- (void)showAlert:(NSString *) _message{//时间 UIAlertView *promptAlert = [[UIAlertView alloc] initWithTitle:@"提示:" message:_message delegate:nil cancelButtonTitle:nil otherButtonTitles:nil]; [NSTimer scheduledTimerWithTimeInterval:1.5f target:self selector:@selector(timerFireMethod:) userInfo:promptAlert repeats:YES]; [promptAlert show];}
在需要显示弹出框的地方调用[self showAlert:@"测试"];即可。
原理: 弹出的时候, 设置一个定时器。 这里设置1.5秒后, 把当前的弹出框置空。 (promptAlert =NULL;)
分享一下我老师大神的人工智能教程。零基础!通俗易懂!风趣幽默!还带黄段子!希望你也加入到我们人工智能的队伍中来!https://blog.csdn.net/jiangjunshow