Search code examples
iosobjective-cios7xcode5progress

How do I show progress spinner anywhere I want?


I want to be able to show the progress spinner anywhere I want: Inside UITextField, Inside UITextView, Inside UIImageView, etc, etc. How do I do that? I am supposing that simply calling

[UIApplication sharedApplication].networkActivityIndicatorVisible = YES;

is not sufficient. I don't mind doing it in storyboard or programmatically.


Solution

  • You're looking for UIActivityIndicatorView. It's a UIView subclass, so you should be able to specify the position programatically or via interface builder.