How to add textField in UIAlertController?
I want to realize a function about changing password,it requires user to input his previous password,and I design it in a alert dialog,I want to click the button "Confirm the modification" then jump to the other view controller for changing password.I have written some code,but I don't know how to write in the next moment. Charmi Gheewala You can add multiple textfields to alert controller and access them with the alert controller's textFields property If the new password is an empty string, present the alert again. Or another way would be to disable the "Confirm" button, enabling it only when