Last active
March 3, 2019 09:18
-
-
Save bigimot22/b13561498911124ce65f8aa9de4d9047 to your computer and use it in GitHub Desktop.
Un ejemplo de una simple alerta con dos botones en Swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func showMyAlert() { | |
//1 | |
let alerta = UIAlertController(title: "Mi título", message: "Mi mensaje para el usuario.", preferredStyle: .alert) | |
//2 | |
alerta.addAction(UIAlertAction(title: "Aceptar", style: .default, handler: nil)) | |
//3 | |
self.present(alerta, animated: true) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment