6
私は単純に "GoToNewShoot"という関数を呼び出しようとします。警告が表示されたら、ユーザーが "ok"ボタンを押してください。UIAlertでOkを押したときに関数を呼び出す方法
コード:
@IBAction func GobacktoCamera(sender: AnyObject) {
var alertController = UIAlertController(title: "Just Checking", message: "Are You Sure You Want to Start over ", preferredStyle: UIAlertControllerStyle.Alert)
alertController.addAction(UIAlertAction(title: "Yes", style: UIAlertActionStyle.Cancel, handler: nil))
self.presentViewController(alertController, animated: true, completion: nil)