简体   繁体   中英

Creating a custom UIActivityIndicatorView

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.

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

这是从头开始准备集成的自定义UIActivityIndi​​cator的实现。

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.

这个看起来很干净,也可以很容易地挂钩代码。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM