Is there a way to make a custom keyboard to pop up when a user presses on a UITextField. I have a view with a custom keypad on it and I want that to come up when the user presses on the UITextField instead of the default apple keyboard.
A:
not sure I understand the question? the keyboard type can be assigned to the UITextField so If you want a different one then specify it when initializing the object
UITextField * textFld = [[UITextField alloc] init];
textFld.keyboardType = UIKeyboardTypeNumbersAndPunctuation;
Aaron Saunders
2010-07-04 23:17:30
Let me clarify. I have a view with a custom keypad on it and I want that to come up when the user presses on the UITextField instead of the default apple keyboard.
Omar
2010-07-05 08:32:54
+1
A:
Since iOS 3.2 there's a property for exactly that, called inputView.
just go like this: [myTextField setInputView:myInputView] - where myInputView is obviously your custom input view. Then the system will pop up your view instead of the predefined keyboards.
Toastor
2010-08-23 10:15:43