How to implement a loading animation when navigating in a iPhone app?

前端 未结 7 1922
情歌与酒
情歌与酒 2021-02-04 18:41

It seems like a pretty simple problem, but I have been unable to find any good answers.

What I\'m trying to do is to make some sort of animation while some function is l

7条回答
  •  遇见更好的自我
    2021-02-04 18:53

    On an aesthetic note, notice that UIActivityIndicatorView comes with several built-in styles for you to choose from. The code examples above use the Gray and White options, but there are several more described in Apple's documentation. You can set the style by using:

    -initWithActivityIndicatorStyle:(UIActivityIndicatorViewStyle)
    

    or by setting the object's activityViewIndicatorStyle property.

提交回复
热议问题