- 追加された行はこの色です。
- 削除された行はこの色です。
&tag(UIKit/ダイアログとアクションシート);
*目次 [#h905940d]
#contents
*関連ページ [#f0afaecd]
-[[UIKit]]
*参考情報 [#w0037202]
*ダイアログを表示する [#h0b16a92]
-iOS 9以降UIAlertViewが非推奨。UIAlertControllerを使用する。
#pre{{
let alertConroller = UIAlertController(
title: "タイトル",
message: "メッセージ",
preferredStyle: UIAlertControllerStyle.Alert
)
alertConroller.addAction(UIAlertAction(title:"OK", style:UIAlertActionStyle.Default, handler: nil))
presentViewController(alertConroller, animated: true, completion: nil)
}}