Dynamic (Default.png) splashscreen in 3.0 [iPhone SDK]

筅森魡賤 提交于 2019-11-27 09:09:58

It's not possible in 3.0. It was only possible on 2.0 because it was an exploitable bug. The bug was fixed in 3.0 which is why it's not possible.

Apple don't intend the Default.png to be a "splash screen".

If you read the HIG, you'll see that the Default.png is suppose to represent your user interface as it would be "empty" - without any content. It is intended to give the user the illusion of an "near instant" launch.

Check out all of the Apple apps on the iPhone and you'll see how the default.png is meant to be used properly.

Apple frown upon using the Default.png as a splash screen. They say that it is really only appropriate for apps such as games that don't use the standard UI elements that are provided in the SDK.

That being said - lots of apps these days are using this feature to show splash screens, and seems Apple aren't really enforcing this guideline.

Long story short, you can do a splash screen, but it can't be dynamic - not anymore.

Use a blank Default.png and then in your app delegate's -applicationDidFinishLaunching: method, load a UIView that contains your dynamic content. This solution sidesteps any conflicts with Apple's SDK terms as well as all technical problems.

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