まずはUIAlertViewの表示から。
Swiftの場合
@IBAction func showMessage(sender : AnyObject) {
let alert = UIAlertView()
alert.title = "Swiftでタイトル"
alert.message = "SwiftでUIAlertViewを使ってメッセージ"
alert.addButtonWithTitle("OK")
alert.show()
}
Objective-Cの場合// 複数行で書くタイプ(1ボタンタイプ) UIAlertView *alert = [[UIAlertView alloc] init]; alert.title = @"Objective-c title"; alert.message = @"完了しました"; [alert addButtonWithTitle:@"確認"]; [alert show];