Im trying to show a UIAlertView in my swift App
alert = UIAlertView(title: \"\", message: \"bla\", delegate: self, cancelButtonTitle:
Swift 5
You should do it this way:
let alert = UIAlertController(title: "Title", message: "Message", preferredStyle: .alert) alert.addAction(UIAlertAction(title: "Button", style: .default, handler: nil)) self.present(alert, animated: true, completion: nil)