On iPad/iPhone, Do you still need to make an invisible button on background to let users exit entries? Is there a better way to dismiss the keyboard when users click outside of an entry?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I use
in the ViewController to call
resignFirstResponderon the active control from there.// edit:
My Views contain several UITextFields; I want the keyboard to disappear when the user touches anywhere besides a TextField or the keyboard, so my ViewController has this:
This causes the keyboard to disappear. (I keep track of the current textfield elsewhere.)