iOS键盘扩展如何在键盘下添加子视图

时间:2016-03-31 09:20:00

标签: ios keyboard subview inputview uiinputviewcontroller

我正在制作iOs Keyboard扩展,现在我在用户输入默认iOS键盘时添加动画。像这样:

enter image description here

我只是像这样移动我的UIButton图层:

button.layer.position.y = button.layer.position.y - button.layer.bounds.height

一切都还可以,但键盘顶线下的所有东西都是隐藏的,看起来像clipSubviews = true。我尝试将其更改为controller.inputView和controller.view,但没有任何帮助。

enter image description here

带“t”的按钮必须在键盘下方。请帮助。

2 个答案:

答案 0 :(得分:0)

根据我的经验,我设计的键盘少了一点。 比你在顶部会有额外的空间。

答案 1 :(得分:0)

无法在自定义键盘主视图的上边缘上方显示关键图稿,因为当您点按并按住顶行中的某个键时,系统键盘会在iPhone上显示。

相关问题