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
Post a Comment