XCode 更新后 iPhone 模拟器截图尺寸变小

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/33470276/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 08:09:09  来源:igfitidea点击:

iPhone Simulator Screenshot Size Became Small after XCode Update

iosiphonexcode

提问by JayVDiyk

I updated my Xcode to the latest version and one thing I notice is that the screenshot image dimension size became small.

我将我的 Xcode 更新到最新版本,我注意到的一件事是截图图像尺寸变小了。

Before I updated it when I take screenshot using the Simulators built-in "Save Screenshot" function on iPhone 6 Plus simulator. I would get 1920 * 1080, But now the image dimension is only 414 * 736.

在我使用模拟器内置的“保存屏幕截图”功能截取屏幕截图之前,我更新了它iPhone 6 Plus simulator。我会得到1920 * 1080,但现在图像尺寸仅为414 * 736.

Any thoughts?

有什么想法吗?

回答by larva

Solution 1:(from Kip's answer)

解决方案1:(来自Kip的回答)

in Simulator menu uncheck the option Debug > Optimize Rendering for Window Scale.

在模拟器菜单中取消选中调试 > 优化窗口比例渲染选项

Solution 2:

解决方案2:

Simulators menu chose Window->Scale->100%. (keyboard shortcut: ?1)

Simulators 菜单选择Window->Scale->100%。(键盘快捷键:?1)

Then save screenshot (keyboard shortcut: ?S).

然后保存屏幕截图(键盘快捷键:?S)。

回答by Kip

Uncheck the option Debug > Optimize Rendering for Window Scale.

取消选中Debug > Optimize Rendering for Window Scale选项。

This will cause the saved screenshots to be in device resolution again, without requiring you to resize the device to the point where you can't see half of it.

这将导致保存的屏幕截图再次处于设备分辨率,而无需您将设备大小调整到看不到一半的程度。

回答by Matt Folwell

You can download the iOS 9.0 or 8.4 Simulator and use it from within XCode 7.1. They save screenshots at the device's native resolution instead of the scaled resolution.

您可以下载 iOS 9.0 或 8.4 Simulator 并在 XCode 7.1 中使用它。它们以设备的原始分辨率而不是缩放分辨率保存屏幕截图。

If you want to take screenshots for the iPad Pro (which only runs iOS 9.1), you're stuck having to change back to 100% scale each time. A keyboard shortcut for this is ?1, ?S, ?3

如果您想为 iPad Pro(仅运行 iOS 9.1)截屏,则每次都必须改回 100% 比例。键盘快捷键是?1、?S、?3