8

I want to create custom GUI for keyboard layout instead of normal layout. How can I achieve this?

Can anyone help me ?

Is there any built-in style/layout available or do I need to create a view for same?

Thanks, Jayesh

kennytm
  • 510,854
  • 105
  • 1,084
  • 1,005
user306661
  • 81
  • 1
  • 1
  • 2

2 Answers2

11

You use the inputView property of a UITextField or UITextView. Simply assign it a custom view of your own. Then, when the receiver becomes the first responder, the system will automatically show your custom view as the keyboard. It will also hide it, when resigning first responder.

As far as I know, there are no templates.

Jorge
  • 2,530
  • 1
  • 19
  • 28
  • That worked great! I had to use NSBundle's loadNibNamed:owner:options (e.g., NSObject *obj = [[NSBundle mainBundle] loadNibNamed:@"KeyboardEntry" owner:self options:nil]; and loop through the hierarchy to establish the view. Now does anyone have any hints on writing the delegation protocol? – mobibob Aug 12 '11 at 19:07
  • Be careful, because this works a little weird with split/undocked keyboard setting turned on :( – Pavel Alexeev Jul 11 '12 at 12:11
5

I collected a view links about this topic with screenshots of keyboard-layouts + links about the programming-background. The article is in german but the links are all english: http://uxzentrisch.de/custom-mobile-keyboard-design/

Thanks for your answer, Jorge!

Tobias
  • 51
  • 1
  • 1