最佳答案
假设您想要一个很好的设备屏幕截图,以下对我有用,来自 Swany 在 this Apple forum thread 上的回答:
在终端中,使用以下命令禁用屏幕截图上的阴影:
defaults write com.apple.screencapture disable-shadow -bool TRUE; killall SystemUIServer
通过选择没有工具栏的区域或整个模拟器窗口并裁剪工具栏,使用 Screencapture 截取屏幕截图。
无论您在哪里使用它,您仍然可以在图像上添加阴影。
以下命令反转对 screencapture 应用程序的更改:
defaults write com.apple.screencapture disable-shadow -bool FALSE; killall SystemUIServer
关于xcode - 如何隐藏iOS模拟器工具栏?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60889509/