landscape splash screen for iphone apps?

限于喜欢 提交于 2020-01-03 05:46:08

问题


i am developing an app which supports all orientations. i need to launch the splash screen (launching image) in all orientation types. but the project summary have only one field (portrait) to set the Default.png. how will i launch the landscape splash screen on my iphone app.

ipad have some features to setup both the orientations. is their anything like that in iphone,

thank you in advance


回答1:


iPhone splash screen is only Portrait. iPad has landscape too because iPad home screen auto rotates unlike iPhone's.

In order to achieve such a behavior you can make your first screen identical to the splash screen ( add the same image on the background) . So it will look like a landscaped splash screen while you are loading the resources needed for your app but you can't start the app in landscape mode.

Hope this helps.

Cheers!




回答2:


Nope, according to HIG, iPhone's default orientation is portrait and launch will do only portrait mode.




回答3:


Let me quote a special behaviour

From Technical Note TN2244 Launching your iPhone Application in Landscape

Except for launch images used by the iPhone 6 Plus, asset catalogs assume that all iPhone launch images are for the portrait orientation.

Therefore

Launch images for iPhone apps are always sized to match the dimensions of the screen in portrait orientation. For applications that launch into landscape orientation, you should use your preferred graphics editing software to rotate the content of the launch image while keeping the image's size consistent with a portrait launch image (height > width).

if you don't do things correctly, you can end up with a blank/white screen

The result is a blank screen during launch as the system cannot find an appropriate launch image.

Unfortunately, the document was last updated 2 years ago.

2015-05-26 Updated for Xcode 6 and iOS 8.



来源:https://stackoverflow.com/questions/11431076/landscape-splash-screen-for-iphone-apps

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