ashishkakkad.com
Working with Alert in Swift Language - iOS 8 - Xcode 6 - Ashish Kakkad
In iOS 8 the UIAlertView is deprecated. Now UIAlertController is a single class for creating and interacting with what we knew as UIAlertView. We have to create alert as follows. [code language=”obj-c”] var alert = UIAlertController(title: "Alert", message: "Message", preferredStyle: UIAlertControllerStyle.Alert) alert.addAction(UIAlertAction(title: "Cancel", style: UIAlertActionStyle.Cancel, handler: nil)) self.presentViewController(alert, animated: true, completion: nil) [/code] We can ... Read more
Ashish Kakkad