iPhone仅限横向图片,不支持iOS7 R4图像资源的启动图像 [英] iPhone landscape-only no launch image for iOS7 R4 image asset

查看:77
本文介绍了iPhone仅限横向图片,不支持iOS7 R4图像资源的启动图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很确定这是一个错误,但是如果有人找到解决方法,请告诉我。



我已经设置了资产发布图像的Xcode-5目录。如果我设置iOS 7 R4图像,则仅在我的应用程序支持纵向方向时使用。我的应用程序仅适用于右侧,我看不到启动图像。



iOS 5,6图像工作正常,R4 iOS 5,6图像将如果我省略了iOS 7 R4图像,实际加载正确。



有没有人能够让它工作?



更新



我发现我可以显示iOS 7风景图片,但前提是我删除了默认设置(iOS6)图像,这对我没有帮助。如果您编辑info.plist并将图像方向更改为横向(右侧主页按钮)(例如),然后提供水平图像,它将在启动时实际显示在iOS 7上。不幸的是,如果你包含一个iOS 6图像,它会显示出来。此外,如果方向不是纵向,则不会在目标的常规选项卡中看到iOS 7图像。这是使用Xcode 5.0和iOS 7.0.2。

解决方案

我的解决方案是不要使用资产目录并提供

Default.png(320x480)

Default@2x.png(640x960)

< b> Default-568h@2x.png(640x1136)

作为项目中的捆绑包,iOS会自动找到它们(Apple没有iPhone的横向启动图像或iPod,所以我们需要提供旋转90度的风景图像)

$
你可能需要

Default-Landscape @ 2x~ ipad.png

默认 - 风景~ipo.png 如果您也使用iPad,则需要




如果您有
,请不要忘记在Project-Info.plist中删除固定的启动图像名称

I'm fairly certain this is a bug, but in case anyone has found a way around this, let me know.

I've set up an asset catalog in Xcode-5 of launch images. If I set an iOS 7 R4 image it is only used if my app supports portrait orientation. My app is landscape-right only and I do not see the launch image.

The iOS 5,6 images work just fine, and the R4 iOS 5,6 image will actually load "correctly" if I leave out the iOS 7 R4 image.

Has anyone been able to get this to work?

Update

I've found that I can get iOS 7 landscape images to appear, but only if I remove the default (iOS6) images, which doesn't really help me. If you edit the info.plist and change the image orientation to "Landscape (right home button)" (for example), then provide a horizontal image, it will actually show it on iOS 7 at launch. Unfortunately, if you include an iOS 6 image, it shows that instead. Also, you will not see the iOS 7 image listed in the "General" tab of your target if the orientation is anything other than Portrait. This is with Xcode 5.0 and iOS 7.0.2.

解决方案

My Solution is Don't use asset catalogs and provide
Default.png (320x480)
Default@2x.png (640x960)
Default-568h@2x.png (640x1136)
as bundle in project and iOS will automatically found them
(Apple doesn't have landscape launch image for iPhone or iPod, so we need to provide rotated 90 degree of landscape image)

You may need
Default-Landscape@2x~ipad.png
Default-Landscape~ipad.png
if you do iPad too.

Don't forget to delete fixed launch images name in your Project-Info.plist if you have

这篇关于iPhone仅限横向图片,不支持iOS7 R4图像资源的启动图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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