Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS Launch image stretching for half-second

Tags:

ios

My game is landscape only and on both the iPad and iPhone, when I launch the game, the launch image is stretched like it's being fit into portrait mode. This only last for about 1/2 second, then it displays correctly for the rest of the time. I can't figure out how to get it to display correctly from the start. It's only a 1/2 second and then it fixes itself, so it's not a massive issue, it just looks unprofessional.

Having the device locked (or unlocked) to landscape doesn't change the behavior.

I have this Info.plist key set: UIInterfaceOrientationLandscapeRight

I have the following images and they are all in landscape (wider than tall)

[email protected]
[email protected]
[email protected]
Default-Landscape@2x~ipad.png
Default-Landscape~ipad.png

I'm not (and can't, without a lot of work) use Storyboards.

like image 337
Roger Gilbrat Avatar asked Aug 09 '17 19:08

Roger Gilbrat


1 Answers

Since you don't seem to be using storyboards I can only advice you to check what interface is your app being launched at.

Ensure that you only have Landscape Left and Landscape Right under your target configuration.

(Select your project) -> Targets -> (Select your target) -> General Tab -> Deployment Info -> (there you will find Device Orientation)

Also make sure that under the Info.plist, under the key "Supported interface orientations" the "portrait" one is not included.

like image 53
Pochi Avatar answered Oct 27 '22 16:10

Pochi