IOS 8 keyboard extension - UIInputViewController cannot add multiple views

I think the UIInputViewController on the keyboard extension has some limitations.

First problem:

I NEVER add a subview to an inputView or view, but when I instantiate a view from nib, AUTOMATICALLY sets this view as the default view. Not okay.

The second problem:

I have two split views in one xib file.

enter image description here

One for the alphabetic keyboard (and its subspecies), and the other for the numeric keypad (and its subspecies). The only way to get this keyboard is to use:

self.view!.insertSubview(self.mainViewNumberKeyboard, aboveSubview: self.mainViewLetterKeyboard)

This makes it visible, but the view does not accept user interaction . The keys from the base keyboard of the keyboard intercept all types.

self.mainviewLetterKeyboard.hidden = true ( ). ( , Apple - )

, XIB, . , UIInputViewController , .

:

self.inputView . , self.view!.insertSubview, ,

  • 123 .
  • ​​ UIInputViewController.view
  • ABC
  • ​​ UIInputViewController.view

- MULTIPLE- ?

+4
2

UIInputViewcontroller UIInputView, inputView, UIView.

inputView - , .

?

0

Source: https://habr.com/ru/post/1547972/


All Articles