I want to get the user name. A simple text input dialog box. Any simple way to do this?
Building on John Riselvato's answer, to retrieve the string back from the UIAlertView...
alert.addAction(UIAlertAction(title: "Submit", style: UIAlertAction.Style.default) { (action : UIAlertAction) in
guard let message = alert.textFields?.first?.text else {
return
}
// Text Field Response Handling Here
})