Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove the grey bottom bar in iPad simulator

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

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

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

enter image description here

like image 867
Vladimír Slavík Avatar asked Nov 02 '15 14:11

Vladimír Slavík


1 Answers

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.

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.

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 {} defaults write "{}" KeyboardAssistant -bool NO

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

like image 56
Loz Avatar answered Sep 24 '22 17:09

Loz