适用于 iOS7 R4 图像资产的 iPhone 横向仅无启动图像 [英] iPhone landscape-only no launch image for iOS7 R4 image asset

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

问题描述

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

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

我在 Xcode-5 中设置了启动图像的资产目录.如果我设置了 iOS 7 R4 图像,则仅当我的应用支持纵向时才使用它.我的应用仅适用于横向,我看不到启动图像.

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.

iOS 5,6 图像工作正常,如果我省略 iOS 7 R4 图像,R4 iOS 5,6 图像实际上会正确"加载.

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?

更新

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

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.

推荐答案

我的解决方案是不要使用资产目录并提供
默认.png (320x480)
默认@2x.png (640x960)
默认-568h@2x.png (640x1136)
作为项目中的包,iOS 会自动找到它们
(Apple 没有 iPhone 或 iPod 的横向启动图像,因此我们需要提供旋转 90 度的横向图像)

你可能需要
默认风景@2x~ipad.png
默认-横向~ipad.png
如果你也做 iPad.

如果您有

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

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

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