简体   繁体   中英

iPad Launch Images and Orientation

OK, I have a question regarding launch images on the iPad and orientation. Again, this is specifically regarding, launch images and has nothing to do with rotation/orientation once the application actually gets control.

Anyway, the Default.png resource is always loaded, regardless of orientation of the device, regardless of supported orientations, and regardless of Initial Interface Orientation. It just appears that the app is considered to be in Portrait until it is (possibly) auto-rotated later. I read something to this effect on the apple dev stuff, but given that there are launch images for these different orientations (Default-Landscape, Default-LandscapeLeft, etc.) I presumed that orientation was not fixed at launch.

The simple solution was to rotate my Default.png 90 degrees so that it is at least dimensionally correct, but that is not an acceptable solution unless it is the only solution. I did come across a reference to a folder called 'Resource-iPad' but have not been able to dig up much info in that regard.

Both the device and simulator seem consistent. I am targeting iPhone/iPad. Resources are in the root of main bundle, etc.

So, I must be missing something obvious, but I am not sure what and that is where you guys come in.

Thanks in advance, Tom

If your app is universal, make sure you have two images for the iPad version -- one named "Default-Landscape~ipad.png" and one "Default-Portrait~ipad.png". Be careful of the tilde vs. dash in the names.

If it isn't universal, then just "Default-Portrait.png" and "Default-Landscape.png" should work. Not sure why it isn't working for you. Maybe having "Default.png" and "Default-Landscape.png" isn't an acceptable combination for the OS, in which case change Default.png to Default-Portrait.png

I know that most (if not all) landscape Splash Screens are made by rotating the picture 90°. This usually reflects the intended orientation once the app loads, and helps the user turn their iOS device accordingly.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM