uitextfield hide keyboard?
问题 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 ? 回答1: If you want the exact same behavior, without the keyboard, try textfield.inputView = [[[UIView alloc] initWithFrame:CGRectZero] autorelease]; 回答2: Returning NO to UITextFieldDelegate 's - (BOOL)textFieldShouldBeginEditing:(UITextField *)textField should do it. 回答3: I think you can use