如何隐藏iOS模拟器工具栏? [英] How to hide iOS simulator Tool Bar?

查看:161
本文介绍了如何隐藏iOS模拟器工具栏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

似乎iOS模拟器添加了一个新的工具栏,我无法将其隐藏.

Seems like the iOS simulator added a new ToolBar, which I am unable to hide.

有隐藏它的快捷方式吗?

Is there any shortcut to hide it?

推荐答案

假设您希望使用该设备获得漂亮的屏幕截图,以下内容对我有用,来自

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

使用Screencapture截屏,方法是选择没有工具栏的区域,或者选择整个Simulator窗口并裁剪工具栏.

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.

以下命令将更改撤消到screencapture应用程序:

The following command reverses the change to the screencapture app :

defaults write com.apple.screencapture disable-shadow -bool FALSE; killall SystemUIServer

这篇关于如何隐藏iOS模拟器工具栏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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