Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

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)
 
PREVIOUS NEXT
Tagged: #IOS #create #UIAlertViewController #programmatically
ADD COMMENT
Topic
Name
8+9 =