splash screen like tap tap revenge 3

前端 未结 2 896
别那么骄傲
别那么骄傲 2021-01-16 11:05

thank you for taking your time to read this message. I hope you are able to answer my question.

I would like to add a splash screen to an existing project similar to

2条回答
  •  半阙折子戏
    2021-01-16 11:28

    Obviously opinions on splash screens vary. However, to do what TTR does is pretty simple; have a single Default.png file for your first screen. Then, make the top view controller you load at startup a simple image, and that's your second screen.

    The trick is too offload as much of your startup code as possible, and defer it to after the initial launch. Anything done= between startup and the end of applicationDidFinishLaunching: will be done while your Default.png screen is shown. Use -performSelector:withObject:afterDelay: to defer 'expensive' calls, so that you can quickly get to your second splash screen.

提交回复
热议问题