Answers for "swift create uiviewcontroller programmatically"

1

IOS create UIAlertViewController programmatically

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)
Posted by: Guest on March-25-2020

Code answers related to "swift create uiviewcontroller programmatically"

Code answers related to "Swift"

Browse Popular Code Answers by Language