问题
Seems like the iOS simulator added a new ToolBar, which I am unable to hide.
Is there any shortcut to hide it?
回答1:
No there is no way to hide the toolbar. It is an integrated toolbar and title bar.
If you'd like to see this option please file a feedback request for it.
回答2:
Assuming you want a nice screenshot with the device the following worked for me, from Swany's answer on this Apple forum thread :
In a terminal, disable shadows on Screenshots with the following command:
defaults write com.apple.screencapture disable-shadow -bool TRUE; killall SystemUIServer
Take a screenshot with Screencapture, either by selecting a region without the Toolbar, or of the whole Simulator window and crop the Toolbar.
You can still add shadow on the image wherever you use it.
The following command reverses the change to the screencapture app :
defaults write com.apple.screencapture disable-shadow -bool FALSE; killall SystemUIServer
来源:https://stackoverflow.com/questions/60889509/how-to-hide-ios-simulator-tool-bar