ios - 应用启动动画怎么实现
黄舟
黄舟 2017-04-17 11:24:22
0
1
403

很多游戏的应用启动画面是一个视频,左上角哪里有一个跳过按钮,我想知道这个是怎么实现的?
另外,这种方法疑似不太好看,我可否像播放GIF那样,把启动的Default.png做成动态图片,或者至少是动态图片的效果?有没有什么方案?

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(1)
刘奇

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~

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!