【问题标题】:I want to fix the orientation of the keyboard我想修复键盘的方向
【发布时间】:2014-10-24 18:53:38
【问题描述】:

我想修正键盘的方向。 我的 ViewController 只支持肖像。 如果我旋转 iPhone,ViewController 中的视图不会旋转,但键盘会以横向显示。 即使我旋转 ViewController,我也想修复键盘的纵向方向。

- (BOOL)shouldAutorotate
{
return NO;
}

此代码不起作用。我听说 UIWindow 可能是相关的.. 请告诉我如何解决这个问题。

【问题讨论】:

  • 状态栏也旋转了吗?

标签: ios objective-c keyboard uiinterfaceorientation


【解决方案1】:

在taget中设置-> 一般只选择纵向。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-12-01
    • 2021-12-25
    • 1970-01-01
    • 2010-11-09
    • 2013-11-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多