如何使用Objective c在iOS 9.3中为启动屏幕添加动画 [英] how to add animation to launch screen in iOS 9.3 using Objective c
问题描述
如何在iOS 9.3中制作如下图所示的动画启动画面。
how to make a animated splash screen like below image in iOS 9.3.
推荐答案
基本上,你不能制作动画闪屏。
但是,您可以在故事板中复制启动屏幕,并使其成为应用程序的入口视图控制器(VC)。然后加载视图时,您可以启动动画。作为最终结果,您将拥有一个动画启动画面。
Basically, you can't make an animated splash screen. However, you can duplicate the launch screen in your storyboard and make it the entrance-view controller (VC) of your app. Then when the view is loaded, you can start your animation. As a final result, you will have an "animated splash screen."
序列的进展如下:
应用程序启动→显示静态启动屏幕→转换到入口-VC,用户无法看到,因为场景看起来相同→入口-VV视图作为动画加载。
App starts → display static launch screen → transition to entrance-VC, which won't be visible to the user because the scenes look the same → entrance-VC view is loaded as an animation.
总之,将启动画面的.xib文件视为动画启动画面的第一帧。
In summary, treat your launch screen's .xib file as the first frame of your animated launch screen.
这篇关于如何使用Objective c在iOS 9.3中为启动屏幕添加动画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!