On the iphone. When I press on the uitextfield
I don't want a keyboard to popup.
I want the same behavior, just no keyboard at all. How can I hide/close the keyboard when the user presses the uitextfield
?
If you want the exact same behavior, without the keyboard, try
textfield.inputView = [[[UIView alloc] initWithFrame:CGRectZero] autorelease];
Returning NO to UITextFieldDelegate
's - (BOOL)textFieldShouldBeginEditing:(UITextField *)textField
should do it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With