2014年2月12日水曜日

UIAlertViewのサンプル

UIAlertViewのサンプルです。


よく使うので、残しておく

UIAlertView *alert =
                            [[UIAlertView alloc] initWithTitle:@"title" 
                            message:@"message"
                            delegate:self 
                            cancelButtonTitle:@"ボタンのタイトル" 
                            otherButtonTitles:nil];
// アラートを表示させる
[alert show];


項目がいらない場合はnilで設定してあげれば出てきません。

0 件のコメント:

コメントを投稿