活动视图指示器未在LaunchScreen.storyboard上设置动画 [英] Activity View Indicator isn't animating at LaunchScreen.storyboard

查看:170
本文介绍了活动视图指示器未在LaunchScreen.storyboard上设置动画的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望在加载应用程序时在其上使用活动视图指示器",因此我具有LaunchScreen.storyboard. 我在AVI上使用了行为-动画",但它不是动画. 当我使用Act.V.Indic.不在LaunchScreen中-它正在制作动画.

I want to use Activity View Indicator on my app while it's loading, so I have LaunchScreen.storyboard. I use "Behaviour - Animating" on my AVI, but it is not animating. When I use Act.V.Indic. not in LaunchScreen - it is animating.

推荐答案

LaunchScreen故事板是静态的. iOS实际上是从LaunchScreen创建图像并显示该图像.在LaunchScreen故事板上不可能有任何动态或动画内容.

The LaunchScreen storyboard is static. iOS actually creates an image from the LaunchScreen and displays that image. It is impossible to have any dynamic or animated content in a LaunchScreen storyboard.

如果您的应用需要花费一些时间来加载,则应用应在启动后立即显示另一个屏幕,并且该屏幕应显示活动指示器视图.

If your app takes time to load, then your app should display another screen as soon as it starts and that screen should show the activity indicator view.

这篇关于活动视图指示器未在LaunchScreen.storyboard上设置动画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆