[ios]让alertView 自动消失【转】
2013-03-14 23:05
405 查看
self.myalert=[[UIAlertView alloc] initWithTitle:@"提示" message:@"该数据删除成功" delegate:self cancelButtonTitle:nil otherButtonTitles: nil];
[NSTimer scheduledTimerWithTimeInterval:1.0f target:self selector:@selector(performDismiss:) userInfo:nil repeats:NO];
[self.myalert show];
-(void)performDismiss:(NSTimer*)timer
{
[self.myalert dismissWithClickedButtonIndex:0 animated:NO];
}
[NSTimer scheduledTimerWithTimeInterval:1.0f target:self selector:@selector(performDismiss:) userInfo:nil repeats:NO];
[self.myalert show];
-(void)performDismiss:(NSTimer*)timer
{
[self.myalert dismissWithClickedButtonIndex:0 animated:NO];
}
相关文章推荐
- [ios]让alertView 自动消失【转】
- iOS——AlertView利用定时器自动消失
- IOS AlertView 自动消失
- iOS-UIAlertView弹框2秒后自动消失
- ios:UIAlertView自动消失
- ios:UIAlertView自动消失
- ios:UIAlertView自动消失
- iOS的App退出时alertView的消失处理
- ios:UIAlertView自动消失
- ios AlertView弹出框, 慢慢消失
- ios:UIAlertView自动消失
- ios:UIAlertView自动消失
- ios:UIAlertView自动消失
- ios:UIAlertView自动消失
- ios:UIAlertView自动消失
- Block code execution after alert view is displayed in iOS
- UIAlertView显示后自动消失
- UIAlertView提示框自动消失
- iOS 提示框显示后自动消失
- ios-去掉webview数字自动解析功能