iphone UI键盘横向

发布于 2024-10-07 06:44:22 字数 110 浏览 0 评论 0原文

在横向模式下编辑 UITextfield 时,如何要求 UIKeyboard 从 iPhone 屏幕底部(侧面,即纵向的左侧或右侧)出现?

更简单地说,我需要一个横向 UIKeyboard。

How do I ask for a UIKeyboard to appear from the bottom of the iPhone screen (side, ie. left or right in portrait) when in landscape mode while editing a UITextfield?

Put more simply, I need a landscape UIKeyboard.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

没有你我更好 2024-10-14 06:44:22

尝试实现 shouldAutoRotateToInterfaceOrientation 方法。

Try implementing the shouldAutoRotateToInterfaceOrientation method.

小红帽 2024-10-14 06:44:22

我不确定你可以。我猜想您会通过子类化 inputView 或覆盖 firstResponder 的某些属性来弄乱 firstResponderinputView

I'm not sure that you can. I would guess that you would be messing with the inputView of your firstResponder, either by subclassing the inputView or overriding some property of the firstResponder.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文