Hello friends , To create UIAlertView in swift ->
UIAleartView is deprecated in iOS 9,
so you need to use UIAlertController instead .
let alertController = UIAlertController(title: test alert, message: this is a test alert, preferredStyle: UIAlertControllerStyle.Alert)
alertController.addAction(UIAlertAction(title: "Dismiss", style: UIAlertActionStyle.Default, handler: nil))
self.presentViewController(alertController, animated: true, completion: nil)
0 Comment(s)