Created
April 2, 2020 16:56
-
-
Save RobertoD91/6f1f05315579620a22515f127f7d51a0 to your computer and use it in GitHub Desktop.
test medium 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
import UIKit | |
class ViewController: UIViewController { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
// Do any additional setup after loading the view, typically from a nib. | |
} | |
@IBAction func showMessage(sender: UIButton) { | |
let alertController = UIAlertController(title: "Welcome to My First App", message: "Hello World", preferredStyle: UIAlertController.Style.alert) | |
alertController.addAction(UIAlertAction(title: "OK", style: UIAlertAction.Style.default, handler: nil)) | |
present(alertController, animated: true, completion: nil) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment