Objective-C : アラート表示して自動的に閉じる方法
アラートの表示自体は簡単なのですが、自動的に閉じたい時の方法です。
1 2 3 4 5 6 7 8 9 |
//アラートの表示 UIAlertView *alert = [[[UIAlertView alloc] initWithTitle:@"SAVE" message:@"COMPLETE" delegate:self cancelButtonTitle:nil otherButtonTitles:nil ] autorelease]; [alert show]; //アラートを自動的に閉じる [alert dismissWithClickedButtonIndex:0 animated:NO]; |

参考サイト
http://teapipin.blog10.fc2.com/blog-entry-112.html
http://zakihaya.hatenablog.com/entry/20111225/1324744405