很多游戏的应用启动画面是一个视频,左上角哪里有一个跳过按钮,我想知道这个是怎么实现的?
另外,这种方法疑似不太好看,我可否像播放GIF那样,把启动的Default.png做成动态图片,或者至少是动态图片的效果?有没有什么方案?
怪我咯2017-04-17 11:26:22
If the splash screen is a video, it is very simple to implement. After the app is started, play a video and then add a skip button on it.
A more feasible solution is that you can first display the animation written in the program, and then put the remaining initialization work into GCD:
dispatch_async(dispatch_get_main_queue(, ^{ // other initial codes });
P.S. I remember looking at lastfm’s code in 2010, and found that the startup animation of its ios client was really powerful: I directly made 68 screenshots of the logo animation, and then used UIImageView’s animationImages to play it frame by frame. In fact, this is also a way~