Activity View Indicator isn't animating at LaunchScreen.storyboard

和自甴很熟 提交于 2020-08-20 06:23:29

问题


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.


回答1:


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.




回答2:


Launch screens are static. Even though you set it to animating, it won't animate, simply because it can't. Think of them as outlines for your launch images. iOS will generate an image from them, that'll be shown to the user. They are a more convenient way of generating launch screens but aren't interactive or dynamic.



来源:https://stackoverflow.com/questions/43545097/activity-view-indicator-isnt-animating-at-launchscreen-storyboard

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!