禁用 iOS5 键盘中的拆分选项
由于 iOS5 中新的拆分键盘选项,我在应用程序中遇到了问题。
我们有什么办法可以在 Objective C 中隐藏或禁用这个选项吗?
提前致谢。
I am facing problem in my app because of the new split keyboard option in iOS5.
Is there any way we can hide or disable this option in objective C?.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
似乎分体键盘没有使用与普通键盘相同的功能。参见这里。
缺少 kb 通知
Seems like the split keyboard does not use the same functions as regular keyboard. see here.
missing kb notifications
问题是:您可以遍历键盘子视图并隐藏按钮,但从一个应用程序转到下一个应用程序时无法控制键盘的状态。当应用程序进入前台并且键盘变为活动状态时,强制调用私有 api 会变得非常棘手和狡猾。
您可以这样做,但苹果可能会拒绝您进入商店。
修复您的视图以考虑键盘移动。当 UI 由于键盘放置而明显中断时,您的用户将停靠或取消拆分键盘。
其他解决方案可能是移动需要使用通知来停靠或取消停靠键盘位置的整个视图。请参阅此处的其他帖子:StackOverflow文章
Here's the problem: You can iterate through the keyboard subviews and hide the button but you can't control the state of the keyboard when going from one app to the next. It would get really tricky and sneaky to force the private api to call when the application did enter foreground and the keyboard became active.
You could do this but apple may deny you from the store.
Fix your view to account for the keyboard movement. Your users will dock or unsplit the keyboard when there's clear disruption in the UI due to the keyboard placement.
Other solutions could be to move the entire view that requires keyboard placement to be docked or undocked using the notifications. See other posting here: StackOverflow article