Question : IOS create UIAlertViewController programmatically
Answered by : mobile-star
let alertController = UIAlertController(title: "Some Error", message: "Pleas confirm?", preferredStyle: .alert) let defaultAction = UIAlertAction(title: "OK", style: .default, handler: nil) alertController.addAction(defaultAction) self?.present(alertController, animated: true, completion: nil)
Source : | Last Update : Wed, 01 Apr 20