ios AlertView弹出框, 慢慢消失
来源:互联网 发布:网络语气词有哪些 编辑:程序博客网 时间:2024/06/16 00:42
- (void)timerFireMethod:(NSTimer*)theTimer//弹出框
{
UIAlertView *promptAlert = (UIAlertView*)[theTimer userInfo];
[promptAlert dismissWithClickedButtonIndex:0 animated:YES];
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];
{
}
- (void)showAlert:(NSString *) _message{//时间
}
个人观点: 效果有点尴尬, 但是可以根据其他方法去自定义AlertView;
转自: http://blog.sina.com.cn/s/blog_721cd3390101voi2.html
0 0
- ios AlertView弹出框, 慢慢消失
- IOS AlertView 自动消失
- IOS AlertView 自动消失
- 随波逐流之iOS AlertView(弹出框)详解
- iOS 弹出框自动消失
- iOS之自定义弹出框--AlertView
- [ios]让alertView 自动消失【转】
- Swift AlertView 弹出警告框
- iOS开发- 自动消失的弹出框
- iOS开发- 自动消失的弹出框
- iOS开发-自动消失的弹出框
- iOS——AlertView利用定时器自动消失
- iOS的App退出时alertView的消失处理
- ios alertView添加输入框
- iOS自定义alertView提示框
- ios alertView
- iOS 8.3 ios9 横屏弹出alertview 崩溃问题
- 弹出框自动消失
- Servlet(session的使用)
- jquery详解,jquery 与javascript对比实例学习
- java1.5高新知识之泛型(3)
- leetcode 刷题之路 78 Binary Tree Postorder Traversal
- 1408121428-hd-Saving HDU.cpp
- ios AlertView弹出框, 慢慢消失
- [ExtJS学习笔记]第六节 Extjs的类系统Class System命名规则及定义和调试
- 远程视频监控之应用篇(环境搭建)
- Google开源项目word2vec
- Linux 定时器编程
- jquery validate addmethod
- POJ 1061 青蛙的约会
- TextSwitcher
- 树莓派(Raspberry Pi)编译AllJoyn源代码