iPhone 模拟器截图尺寸不合适 [英] iPhone simulator screenshot is not in proper dimension

查看:49
本文介绍了iPhone 模拟器截图尺寸不合适的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想做的是在iTunes Connect上上传应用程序的屏幕截图,所以我从模拟器中为所有iPhone设备截取了屏幕截图.

What I want to do is to upload screenshot of app on iTunes connect, so I take the screenshot from the simulator for all iPhone devices.

当我尝试在 iTunes Connect 上上传这些屏幕截图时,出现错误一张或多张屏幕截图的尺寸错误.

When I tried to upload these screenshots on iTunes connect, I got the error The dimensions of one or more screenshots are wrong.

所以我验证了每个截图的尺寸如下

so I verify the dimension of each screenshot which are as follows

  • iPhone 4 -> 320 x 480
  • iPhone 5 -> 320 x 568
  • iPhone 6 -> 375 x 667
  • iPhone 6+ -> 621 x 1104

这个尺寸应该是

  • iPhone 4 -> 640 x 960
  • iPhone 5 -> 640 x 1136
  • iPhone 6 -> 750 x 1334
  • iPhone 6+ -> 1242 x 2208

所以问题是为什么模拟器截图来自@1x 而不是@2x.

so the question is why the simulator screenshot coming in @1x not @2x.

我使用的是 Xcode 7.1.

I am using Xcode 7.1.

在此先感谢您的帮助.

推荐答案

如果你想把模拟器缩小,比如 50%,但仍然得到适当尺寸的截图,在模拟器的调试菜单中禁用优化渲染窗口缩放".

If you want to scale simulator down, say 50%, and still get screenshots in proper dimensions, disable "optimize rendering for window scale" in debug menu of simulator.

这篇关于iPhone 模拟器截图尺寸不合适的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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