如何删除iPad模拟器中的灰色底栏 [英] How to remove the grey bottom bar in iPad simulator

查看:147
本文介绍了如何删除iPad模拟器中的灰色底栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图重置模拟器,更改键盘输入设置,旋转模拟器,但它没有改变任何东西。

I have tried to reset the simulator, to change the keyboard input settings, to rotate the simulator, but it did not change anything.

灰色条覆盖我的ui使模拟器不可用。

The grey bar covers my ui so that the simulator is not usable.

XCode版本:7.1(7B91b)
模拟器版本:9.1(SimulatorApp-635.5)

XCode version: 7.1 (7B91b) Simulator version: 9.1 (SimulatorApp-635.5)

推荐答案

隐藏此栏你需要进入模拟器中的Settings.app(点击主屏幕上的齿轮图标),然后点击General-> Keyboard,然后关闭'Shortcuts'切换。

To hide this bar you need to go into the Settings.app within the simulator (tap the gears icon on the home screen), then General->Keyboard, and turn off the 'Shortcuts' toggle.

我经常在我的应用中遇到这个问题,并且不能为我的生活找出为什么栏首先显示。詹姆斯提到的 firstResponder 这个想法似乎是一个明智的开始寻找的地方,但奇怪的是,它出现在每个屏幕上,无论它是否有文本字段在里面与否。也许它毕竟是一个Apple bug。

I have this issue in my app constantly, and cannot for the life of me figure out why the bar is showing in the first place. The firstResponder idea mentioned by James seems like a sensible place to start looking, but bizarrely this is appearing on every screen, no matter if it has a text field in it or not. Perhaps it is an Apple bug after all.

方便提示......如果你正在寻找一种从命令行设置快捷方式键盘选项的方法(例如,当执行 https://github.com/fastlane/snapshot ),以下命令可以解决问题:

Handy hint... if you are looking for a way to set the Shortcuts keyboard option from the command line (eg. when doing https://github.com/fastlane/snapshot), the following command does the trick:

find~ / Library / Developer / CoreSimulator / Devices -path * / data / Library / Preferences / com.apple.Preferences.plist | xargs -n 1 -I {}默认写入{}KeyboardAssistant -bool NO

(它找到所有的Settings.app plists for所有模拟器并将 NO 写入 KeyboardAssistant 键)

(it finds all the Settings.app plists for all simulators and writes NO into the KeyboardAssistant key)

这篇关于如何删除iPad模拟器中的灰色底栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆