开发者

Can we use sleep(9);Function

Can we use sleep function at applicationDidFinishLaunching to ta开发者_运维知识库ke more time to show Splash screen?.Is this Valid in HIG


You can use the sleep function in applicationDidFinishLaunching, but doing what you want to do is frowned on in the HIG

Avoid displaying an About window, a splash screen, or providing any other type of startup experience that prevents people from using your application immediately.


Yes. But it's really stupid. Also if you don't exit applicationDidFinishLaunching in a certain amount of time (say, 2-10 seconds) your app will be killed by the system.


I never really understand the view against a splash screen as most apps I run on iPhone and iPad have them. I see not issue with a company logo on display for 2 - 3 seconds rather than a Default.png that flashes on screen for a nano second leaving the user to wonder "er what was that?"

Nearly all applications have a splash screen either on mobile devices or desktop. I agree with not delaying the user experience but I also agree with a company logo.

If a user is put off by a 2-3 second delay then they really should go on a "learn to chill" course!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜