An Alert in Swift iOS 8 Only

let alert = UIAlertController( title: "Hey", message: "This is one Alert", preferredStyle: UIAlertControllerStyle.Alert) alert.addAction(UIAlertAction( title: "Working!!", style: UIAlertActionStyle.Default, handler: nil)) self.presentViewController(alert, animated: true, completion: nil)

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.