如何为iPhone 6和6 Plus上的应用启用原生分辨率? [英] How to enable native resolution for apps on iPhone 6 and 6 Plus?

查看:95
本文介绍了如何为iPhone 6和6 Plus上的应用启用原生分辨率?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Xcode 6 GM现在包含适用于iPhone 6和6 Plus的模拟器,默认情况下,它们以缩放模式运行应用程序。

Xcode 6 GM now includes simulators for iPhone 6 and 6 Plus, and by default they run apps in a scaled mode.

要启用我尝试的新屏幕尺寸添加 Default-667h@2x.png 这似乎做了一部分技巧,因为应用程序现在根本无法运行,错误无法在模拟器中运行应用程序 - 运行时遇到错误(Domain = LaunchServicesError,Code = 0)。

To enable the new screen size I tried adding Default-667h@2x.png which seems to do a part of the trick since the app now fails to run at all, with the error "Unable to run app in Simulator – An error was encountered while running (Domain = LaunchServicesError, Code = 0)".

有没有人想出如何在6/6 +中实际运行应用程序分辨率?

Has anyone figured out how to get an app actually run in the 6/6+ resolution?

推荐答案

您可以添加一个似乎适用于多种屏幕尺寸的启动屏幕文件。我刚刚将MainStoryboard添加为启动屏幕文件,这使得应用程序无法进行扩展。我想我稍后需要添加一个永久性的启动屏幕,但这样可以让原生分辨率得到提升并快速完成。在Xcode中,转到目标,常规并在那里添加启动屏幕文件。

You can add a launch screen file that appears to work for multiple screen sizes. I just added the MainStoryboard as a launch screen file and that stopped the app from scaling. I think I will need to add a permanent launch screen later, but that got the native resolution up and working quickly. In Xcode, go to your target, general and add the launch screen file there.

这篇关于如何为iPhone 6和6 Plus上的应用启用原生分辨率?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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