1 2 3 4 5 |
@IBAction func onTap(_ sender: Any) { let alertController = UIAlertController(title: "Hello", message: "tapped", preferredStyle: .alert) alertController.addAction(UIAlertAction(title: "OK", style: .default, handler: nil)) present(alertController, animated: true, completion: nil) } |
![](https://uchukamen.com/wordpress/wp-content/uploads/2020/05/スクリーンショット-2020-05-12-12.13.11.png)