I'm trying to write a custom keyboard for iOS8 and so far, minus the odd hiccup, I've not had too many issues. However, when I create a view and add it as a subview of a UIButton
I've added to the keyboard view the newly added view is clipped at the top of the keyboard view. From what I can tell, the hierarchy is as follows:
UIView
(popup) -> UIButton
(actual "key") -> UIInputView
With this hierarchy, the top-level UIView
is being clipped inside the UIInputView
. Each UIView
has had clipsToBounds
set to false
, and I also set the UIView
(self.view
) to false
within the UIInputViewController
, but that doesn't seem to have helped.
It could be that this is a restriction of the extension system currently, but hopefully it's something silly I'm doing!
This is actually not possible. According to the docs it states "In addition, it is not possible to display key artwork above the top row, as the system keyboard does on iPhone when you tap a key in the top row.", which is a shame.
Thanks to @Spentak for pointing that out