I have several UITextFields. I want to disable the “double tap” that brings the autocorrection/keyboard. I’m using a tap function to chose which UITextField to activate.
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.
You can tell a UITextField not to begin the editing process using the
textFieldShouldBeginEditingDelegate method of UITextView:Apple documentation reference on the method:
http://developer.apple.com/library/ios/#documentation/uikit/reference/UITextFieldDelegate_Protocol/UITextFieldDelegate/UITextFieldDelegate.html
some conditionwould likely be a check to see whether the user is selecting the UITextField to activate it, or whether it is already active and it should bring the keyboard up.You could subclass UITextView to give it a “selected” property, and make it a UITextViewDelegate. If “selected” is false, then set it to true in
textFieldShouldBeginEditing:and return NO; otherwise, return YES. That’s just one random idea off the top of my head.