Last active
October 28, 2015 17:25
-
-
Save dsowsy/d2103c52a974bbcb946d to your computer and use it in GitHub Desktop.
Simple alert wrapper func
This file contains hidden or 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 showAlert(title: String, message: String){ | |
| let alertController = UIAlertController(title: title, message:message, preferredStyle: .Alert) | |
| let defaultAction = UIAlertAction(title: "OK", style: .Cancel, handler: nil) | |
| alertController.addAction(defaultAction) | |
| self.presentViewController(alertController, animated: true, completion: nil) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment