开发者

Creating a custom UIActivityIndicatorView

开发者 https://www.devze.com 2023-03-06 13:58 出处:网络
I want to have a custom view for UIActivit开发者_运维问答yIndicatorView rather than relying on options given by iOS. How can I create my own view here?

I want to have a custom view for UIActivit开发者_运维问答yIndicatorView rather than relying on options given by iOS. How can I create my own view here?

I have a list of images with me to create a animated view.


As you haven't specified the case in which you want to use the activity indicator,

check the below tutorial blog for custom UIActivityIndicatorView,

Custom UIActivityIndicatorView (EDIT: This link is gone)

Showing a "Loading..." message over the iPhone keyboard


This is implementation of custom UIActivityIndicator from scratch ready for integrating.


Abhinav, if you want to use a set of images you could as well use a UIImageView. Set the animationImages and start-stop as you wish.


This one looks nice and clean, can be hooked to the code easily too.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号