Swift alert 実装忘備録
let alert = UIAlertController(title: "This date already once", message: nil, preferredStyle: .alert) alert.addAction(UIAlertAction(title: "Dismiss", style: .default) { (_) in }) self.present(alert, animated: true, completion: nil)
let alert = UIAlertController(title: "This date already once", message: nil, preferredStyle: .alert) alert.addAction(UIAlertAction(title: "Dismiss", style: .default) { (_) in }) self.present(alert, animated: true, completion: nil)