Reputation: 53657
In my app I do not want to show keyboard even when UITextfield is firstresponder.Can anyone know how this can be achieved?
Thanks in advance!
Upvotes: 0
Views: 754
Reputation: 1948
You can set the UITextField's inputView to a zero-size view, like this
textField.inputView = [[UIView alloc] initWithFrame:CGRectZero] autorelease];
Upvotes: 3
Reputation: 21893
The idea of a UITextField (or other text entry UIControl subclass) is that when it's firstResponder, it's all set to receive text entry.
If you're paired with a bluetooth keyboard, the device won't show a soft keyboard, because the field is set up to receive text entry from the physical keyboard. If you're not, then it's going to show a soft keyboard so you can enter text. That's just how it works.
It could be that what you mean by "first responder" isn't really what you mean. Can you say some more about what you want to accomplish here?
Upvotes: 0