iPhone 6使用启动图像进行缩放 [英] iPhone 6 scaling using launch images

查看:104
本文介绍了iPhone 6使用启动图像进行缩放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序在iPhone 6和6上加上与5相同。我试图让应用程序在更大的手机上使用额外的屏幕空间。我已经阅读了关于使用适当大小的启动图像,但它只能在模拟器中工作,而不能在设备上工作。我为iPhone 6添加了750x1334的启动图像,以及其他设备的各种尺寸。当我在模拟器中启动时,缩放按预期进行。当我在设备上启动时,屏幕会缩放到iPhone 4s比例。

My app scales the same on iPhone 6 and 6 plus as on the 5. I'm trying to get the app to use the extra screen space on the larger phone. I've read about using the appropriate size launch images, but it only works in the simulator, not on the device. I added a 750x1334 launch image for the iPhone 6, and the various sizes for the other devices. When I launch in the simulator, the scaling takes place as expected. When I launch on the device, the screen scales to the iPhone 4s scale instead.

我尝试重新启动启动图像,并一次添加一个。每当我为Retina HD 4.7添加750x1334时,手机上的应用程序都会扩展到iPhone 4尺寸。我尝试删除应用程序并重新安装,但同样的事情发生。此外,我现在注意到,当我放入Retina HD 4.7图像时,它也会导致我的iPhone 5上发生同样的事情,即使该尺寸设备有适当的启动图像。

I tried starting over with the launch images, and adding one at a time. Whenever I add the 750x1334 for the Retina HD 4.7, the app on the phone scales to iPhone 4 size. I tried deleting the app and reinstalling but the same thing happens. Also, I notice now that when I put in the Retina HD 4.7 image, it also causes the same thing to happen on my iPhone 5, even though there is an appropriate launch image for that size device.

任何帮助都将不胜感激。

Any help would be greatly appreciated.

编辑添加:我妻子的iPhone 6 Plus刚进来并且没有表现出上述行为(但仍然存在iPhone 6和5的问题。

EDITED TO ADD: My wife's iPhone 6 Plus just came in and it does not exhibit the above behavior (but remains a problem with iPhone 6 and 5).

推荐答案

我通过以下方式获得了预期的结果:

I was able to achieve the desired result through doing the following:

1)保留我的旧的Launch Images Source配置集,涵盖iPhone 4和5.这将照顾iOS 7设备。

1) leave in place my old Launch Images Source configuration set that covered iPhone 4 and 5. This takes care of iOS 7 devices.

2)创建和指定XIB中的启动屏幕文件。这将照顾iOS 8上的所有设备。

2) create and designate a Launch Screen File in XIB. This takes care of all devices on iOS 8.

3)在iPhone 6上,在设置 - >显示和亮度 - >显示缩放下,选择标准而不是缩放。拥有Zoomed的用户将看到与iPhone 5相同的屏幕缩放。

3) On iPhone 6, under Settings --> Display and Brightness --> Display Zoom, choose Standard instead of Zoomed. Users who have Zoomed will see the screen scaled to the same as that of iPhone 5.

这篇关于iPhone 6使用启动图像进行缩放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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