How to delay Default.png?

后端 未结 6 1262
后悔当初
后悔当初 2020-12-31 11:18

How can I delay the app loading to show the splash screen for longer?

6条回答
  •  無奈伤痛
    2020-12-31 11:28

    See the above discussion of why you probably should not delay your app load in this way. But if you happen to have a scenario where sleeping for short duration would be preferable to the overhead of switching out a view, use NSThread's sleepForTimeIntervale instead of sleep(). It's more framework friendly and you have more granular control over the sleep time:

    [NSThread sleepForTimeInterval:0.75]
    

提交回复
热议问题