how to disable default keypad while editing textfield
I need to place custom keypad.
For that, I need to disable my default iPhone keypad.
For that I use:
- (BOOL)textFieldShouldBeginEditing:(UITextField *)textField
{
return NO;
}
If I use this the cursor isn't visible.
So, I don't find which textfield is selected.
I 开发者_如何学编程need functionality so that my keypad is the same as the default keypad.
Can anyone help me.
Thank you in advance.
if your app is going to be iOS 3.2+, check out the inputView property of your text view. That can point to a view that replaces your keyboard.
For TextView use this
- (BOOL)textViewShouldBeginEditing:(UITextView *)textView{
return NO;
}
and for TextField use this
- (BOOL)textFieldShouldBeginEditing:(UITextField *)textField
{
return NO;
}
How to hide keyboard once UITextView becomes the first responder in iPhone SDK?
Hope it helps.
精彩评论