Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create custom activity indicator in iPhone SDK?

Tags:

iphone

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

like image 635
iPhoneDollaraire Avatar asked May 01 '09 19:05

iPhoneDollaraire


3 Answers

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

like image 98
anka Avatar answered Sep 30 '22 10:09

anka


The UIImageView class supports animation. Try that.

like image 24
Ed Marty Avatar answered Sep 30 '22 12:09

Ed Marty


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

like image 33
thierryb Avatar answered Sep 30 '22 12:09

thierryb