iPhone X:使用了错误的启动屏幕方向 [英] iPhone X: Incorrect launch-screen orientation used

查看:121
本文介绍了iPhone X:使用了错误的启动屏幕方向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在测试iPhone X上的图像启动屏幕,并遇到了奇怪的现象.因此,我想在打开雷达之前请求一些反馈:

I am testing image launch-screens on the iPhone X and ran into a strange behavior. So I'd like to request some feedback before opening a radar:

我创建了一个纵向和横向启动屏幕,尺寸分别为1125 x 2436 Pixel(纵向)和2436 x 1125 Pixel(横向).然后,将它们添加到资产目录中,并正确地将它们拾取:

I created a portrait and landscape launch-screen with the dimensions 1125 x 2436 Pixel (portrait) and 2436 x 1125 Pixel (landscape). Then I add them to the asset catalog and they are picked up correctly:

到目前为止,一切都很好.然后,我在iPhone X Simulator上运行该应用程序(为了确保未缓存任何内容,我已经重置了该应用程序),并显示了(拉伸的)横向图像.

So far so good. Then I run the app on the iPhone X Simulator (I've reset the app before to ensure nothing is cached) and the (stretched) landscape-image is shown.

我验证了png源是否具有有效的非Alpha背景,并且仍然无法显示正确的启动屏幕.我注意到人像图像甚至没有复制到生成的产品中:

I validated the png sources to have a valid non-alpha background and am still unable to show the correct launch-screen. I noticed that the portrait image is not even copied to the resulting product:

所以这可能暗示Xcode 9有问题.谢谢大家的反馈!

So that might suggest an issue with Xcode 9. Any feedback is more than welcome, thanks guys!

编辑:旁注:从资产目录中删除风景图像时,肖像一被复制并正确拾取.

EDIT: Side-note: When removing the landscape image from the asset-catalog, the portrait one is copied and picked up correctly.

更新:2017年9月29日:Apple确认这确实是Xcode中的问题,并将分发给相关的工程团队.

UPDATE 09/29/2017: Apple confirmed that it is indeed an issue in Xcode and it will be given to the related engineering-team.

推荐答案

此问题最终在Xcode 9.1 Beta 2及更高版本中得到了解决!

This is finally fixed in Xcode 9.1 Beta 2 and above!

这篇关于iPhone X:使用了错误的启动屏幕方向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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