JGuizard
7/19/2016 - 9:59 AM

Create an alert view popup in swift

Create an alert view popup in swift

let alertController = UIAlertController(title: "No network", message:
                "Sorry, you need an active internet connection.", preferredStyle: UIAlertControllerStyle.Alert)

alertController.addAction(UIAlertAction(title: "Dismiss", style: UIAlertActionStyle.Default,handler: nil))

self.presentViewController(alertController, animated: true, completion: nil)