69 4

Creating Alert with Action

Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
let controller = UIAlertController() controller.title = "Hey!" controller.message = "Don't Worry Be Happy!" let okAction = UIAlertAction(title: "ok", style: UIAlertActionStyle.default) { (alert: UIAlertAction) in self.dismiss(animated:true) } controller.addAction(okAction) self.present(controller, animated: true, completion: nil)
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus