top of page

User Alert

  • Writer: Ruben van Breda
    Ruben van Breda
  • Sep 4, 2020
  • 1 min read

Display user an Alert




func ShowAlert(){

let alert = UIAlertController(title: "My Alert", message: "This is an alert.", preferredStyle: .alert)

alert.addAction(UIAlertAction(title: NSLocalizedString("OK", comment: "Default action"), style: .default, handler: { _ in

NSLog("The \"OK\" alert occured.")

}))

self.present(alert, animated: true, completion: nil)

}



Comments


CSossa

  • White Facebook Icon
  • White Twitter Icon
  • White Pinterest Icon
  • White Instagram Icon

Thanks for submitting!

bottom of page