简体   繁体   English

xcode 6中启动屏幕中的动画

[英]Animation in Launch Screen in xcode 6

I want to animate a set of images in my Launch Screen, but I do not know how. 我想在“启动屏幕”中设置一组图像的动画,但是我不知道如何。 I have seen some tutorials telling me to put code in the App Delegate (DidFinishLaunchingWithOptions) and nothing has worked. 我看过一些教程,告诉我将代码放入App Delegate(DidFinishLaunchingWithOptions)中,但没有任何效果。

Could someone help me animate my Launch Screen? 有人可以帮我制作启动屏幕动画吗?

I am supposing that you do quite a bit of work on launch, and you do not want your user to stare at a static image while this work is going on. 我假设您在启动时做了很多工作,并且您不希望用户在进行此工作时凝视静态图像。 What you need to do is do the work in the background (using gcd). 您需要做的是在后台工作(使用gcd)。 This way, the launch screen will be gone quickly. 这样,启动屏幕将很快消失。 However, you are not ready of course: hence your need for animations. 但是,您当然还没有准备好:因此需要动画。 So what I do is add my own equivalent of the start screen on top of my first visible UIView, do my animations and then tear down my start up screen. 因此,我要做的是在第一个可见的UIView顶部添加自己的等效于启动屏幕,进行动画处理,然后拆除启动屏幕。 If you want to see what I do in action, try it out with my App (The Opera Player) 如果您想了解我的实际操作,请尝试通过我的应用(Opera Player)进行尝试

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM