Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone landscape-only no launch image for iOS7 R4 image asset

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.

like image 973
Ben Flynn Avatar asked Oct 01 '13 07:10

Ben Flynn


2 Answers

My Solution is Don't use asset catalogs and provide
Default.png (320x480)
[email protected] (640x960)
[email protected] (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

like image 186
saranpol Avatar answered Oct 06 '22 21:10

saranpol


The solution that we have found is to update the asset catalog and target only iOS 6 and Prior.

How to do it. Go to the asset catalog. And on the top right corner click on the 'Attribute Inspector' icon. Here you can set the Target OS for the Launch Images. Uncheck the iOS 7 check boxes for iPhone. Now you should be able to see the launch images for these devices.

like image 35
remudada Avatar answered Oct 06 '22 19:10

remudada