How to delay Default.png?

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

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

6条回答
  •  不思量自难忘°
    2020-12-31 11:23

    UPDATE: No seriously, DON'T do this!

    Or us the C function

    sleep(9);
    

    Putting this in applicationDidFinishLaunching: will cause you program to pause for 9 seconds, any other integer may be entered as well.

    EDIT: I've learned a lot in the past year. Don't do this. The reason being that the springboard will automatically stop the app launching if it takes too long. That timing is poorly documented so even one second can result in the app failing.

提交回复
热议问题