Last active
August 29, 2015 14:18
-
-
Save coquer/e3e49a554dc47685ed56 to your computer and use it in GitHub Desktop.
fun class for alerts Swift
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
class func invokeAlertMethod(msgtitle: NSString, msgBody: NSString, delegate: AnyObject?) { | |
var alert: UIAlertView = UIAlertView() | |
alert.title = msgtitle | |
alert.message = msgBody | |
alert.delegate = delegate | |
alert.addButtonWithTitle("Ok") | |
alert.show() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment