iOS 自定义键盘扩展 - 将高度更改为全屏

问题描述

我有一个 iOS 自定义键盘扩展 (UIInputViewController),我想让它全屏显示

改变它的高度非常简单:

self.heightConstraint = NSLayoutConstraint(item: self.view!,attribute: NSLayoutConstraint.Attribute.height,relatedBy: NSLayoutConstraint.Relation.equal,toItem: nil,attribute: NSLayoutConstraint.Attribute.notAnAttribute,multiplier: 0,constant: UIScreen.main.bounds.height)

问题在于键盘的框架位于 UIKeyboardDockView 的顶部 - 包含地球(更改键盘)和麦克风(听写)图标的底部区域。

现在,我想访问该底部区域,以便将其高度减去 UIScreen.main.bounds.height

有谁知道这可能吗?如果没有,请随时提出任何其他解决方案。

Xcode UI debugger view Simulator screenshot

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)