swift2 - waits until the user finishes responding to the popup dialog in Swift -


i want user type text in pop dialog, want program wait until user finished writing text in pop dialog

use uialertcontroller:

let alertcontroller = uialertcontroller(title: "title", message: nil, preferredstyle: .alert) alertcontroller.addtextfieldwithconfigurationhandler { (textfield) -> void in } alertcontroller.addaction(uialertaction(title: "cancel", style: uialertactionstyle.cancel, handler: nil)) loginalertcontroller.addaction(uialertaction(title: "go", style: uialertactionstyle.default, handler: { (action) -> void in } 

Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -