Creating a custom UIActivityIndicatorView

2019-01-14 13:57发布

I want to have a custom view for UIActivityIndicatorView 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.

4条回答
姐就是有狂的资本
2楼-- · 2019-01-14 14:49

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

查看更多
爱情/是我丢掉的垃圾
3楼-- · 2019-01-14 14:49

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.

查看更多
走好不送
4楼-- · 2019-01-14 14:55

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

查看更多
闹够了就滚
5楼-- · 2019-01-14 14:57

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

查看更多
登录 后发表回答