Launch splash screen in Landscape mode for iPhone 5

偶尔善良 提交于 2019-12-07 04:08:25

问题


Our universal application is in Landscape mode only. We need to add a splash screen for iPhone 4 & iPhone 5.

For iPhone 5 in Portrait we use Default-568h@2x.png. How to set a launch screen in Landscape for iPhone 5?


回答1:


According to Apple's Documentation : Providing Launch Images for Different Orientations ,

Each orientation-specific launch image must include a special modifier string in its filename. The format for orientation-specific launch image filenames is as follows:

<basename><orientation_modifier><scale_modifier><device_modifier>.png

Eg :

1)    Default-Portrait.png
2)    Default-PortraitUpsideDown.png
3)    Default-Landscape.png
4)    Default-LandscapeLeft.png
5)    Default-LandscapeRight.png

Note : These modifiers are supported for launch images used in iPad apps only.

So you have to change your Image according to the Orientation for iPhone 5.

Two ways to do that :

1) Rotating the Splash Image to 90 Degree.

2) Inverting the Dimensions (320 * 480 -> 480 * 320).




回答2:


to provide a landscape launch image you must create the image.. and just rotate it 90 degrees in an external image editor




回答3:


Very simple make design on splash screen in landscape mode . and just make splash screen as you do in portrait . user automatically make phone landscape when he/she see screen is in landscape :-)




回答4:


From Apple doc, landscapes launch screens are supported for iPad only.

For iPhone and iPod Touch, you need to create a portrait launch screen that can be your 90°-oriented landscape launch screen. I would apply a clockwise rotation rather than a counter-clockwise rotation (ie so that on a desktop, you need to bend your head on the right to see the image with the correct orientation).




回答5:


use these macros in pch file

#if IS_iPAD
LaunchImage=iPad.png
else
LaunchImage=iPhone.png


来源:https://stackoverflow.com/questions/15061622/launch-splash-screen-in-landscape-mode-for-iphone-5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!