0

What is the spin speed of a UIActivityIndicatorView? Specifically, how long does it take to complete one revolution?

UPDATE: the reason for asking this is that I want to create my own activity indicator spinner that's smaller than the normal one. But I can't change the size of the normal one, so I'm making my own via UIImageView's animation options. I want to be as close to the normal one in behavior, timing, feel, etc. as I can get.

Community
  • 1
  • 1
Tom Hamming
  • 10,577
  • 11
  • 71
  • 145

1 Answers1

3

The spin rate of the UIActivityIndicatorView is 1.0 as of iOS 6.1.4. This number is an implementation detail and is not guaranteed to remain at this value for future versions of iOS. You can figure this out by accessing the first subview of a UIActivityIndicatorView, which is a UIImageView, and querying its animationDuration property. It looks like UIActivityIndicatorView uses an animated UIImageView under the hood.

cncool
  • 1,015
  • 11
  • 12