1

I have developed a custom keyboard with a view and a view controller. In my application's main view controller, I hold a property for the custom keyboard view controller.

I have a textView which should get input from the custom keyboard. The customKeyboard property is the view controller for the custom keyboard.

I put the following in viewDidLoad of the main application's viewController.

self.textView.inputView = self.customKeyboard.view;

The standard system keyboard appears when I make the textView first responder. IB appears to be linking my textView property to the UI component. What do I need to do to get the custom keyboard to appear?

4

1 に答える 1

5

への呼び出しをいくつか試します[self.textView reloadInputViews]。それが機能しない場合は、カスタム キーボードとして使用するビューを常に返すように、UITextViewそのメソッドをサブクラス化してオーバーライドしてみてください。inputView

于 2012-03-18T22:04:05.617 に答える