In my application I want a alert with a textfield. After clicking on \"Done\" I want to save the textfield input in a String. After clicking on \"Cancel\" I want only to clo
You will have to implement the UIAlertViewDelegate's
optional func alertView(_ alertView: UIAlertView, clickedButtonAtIndex buttonIndex: Int)