iPhoneDollaraire
iPhoneDollaraire

Reputation: 226

Create custom activity indicator in iPhone SDK?

I haven't found any references to apps that use a custom activity indicator -- would be an animated GIF old-school -- in place of the Apple-supplied spinning wheels. Are there facilities to do this (or subclass UIActivityIndicatorView), do developers roll their own UIViews, or does this violate HIG?

Thanks, IPD

Upvotes: 5

Views: 9744

Answers (3)

anka
anka

Reputation: 3857

Yeah, as Ed Marty mentioned UIImageView supports the animation of images. So look at this custom activity indicator tutorial to get an inspiration how you could achieve this in a very simple way.

Cheers

Upvotes: 9

thierryb
thierryb

Reputation: 3728

Or you can use an animation to rotate the layer. Here is an interesting post about how to do that :

http://www.cimgf.com/2008/10/25/core-animation-tutorial-slider-based-layer-rotation/

Hope this helps.

Thierry

Upvotes: 1

Ed Marty
Ed Marty

Reputation: 39690

The UIImageView class supports animation. Try that.

Upvotes: 2

Related Questions