【问题标题】:How to close this bottom bar in iOS9 simulator?如何在 iOS9 模拟器中关闭此底栏?
【发布时间】:2015-11-24 03:46:21
【问题描述】:

当我使用 iOS9 模拟器时,我的应用程序上方会显示一个底栏。当键盘出现时,它可以做一些撤消/粘贴操作。在第一张图片中,我现在什至看不到我的 UITabBar。这个栏是什么?如何关闭它?

【问题讨论】:

  • 在您的属性检查器中,在视图控制器下选择 Hide bottom bar on push 并检查您是否仍然看到此栏。问候。
  • @PK20 这个栏不是我加的。看起来它可以做一些撤消/粘贴操作。

标签: xcode ios-simulator ios9


【解决方案1】:

你有两个选择:

1) 设置:

Settings -> General -> Keyboard ->Shortcuts -> Switch to off    

2) 代码(iOS 9 +):

目标-c:

textField.inputAssistantItem.leadingBarButtonGroups = @[];
textField.inputAssistantItem.trailingBarButtonGroups = @[];

斯威夫特:

textField.inputAssistantItem.leadingBarButtonGroups = []
textField.inputAssistantItem.trailingBarButtonGroups = []

【讨论】:

    猜你喜欢
    • 2016-02-02
    • 1970-01-01
    • 2012-04-25
    • 1970-01-01
    • 2018-10-21
    • 2011-07-21
    • 2011-04-24
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多