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

javascript - Trigger mouseenter when an animated element touches mouse -

json - Zend error Connection -

java - Using Spring @Transactional with a combination of readOnly and write, when does this entity get committed? -