Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPad - iPhone Large UIActivityIndicatorView

I need to make a large spinner (with grey style, about 80x80px) but it looks low quality. Is there a way to make it high quality or to replace the animated image?

like image 375
cesarnicola Avatar asked Aug 06 '10 13:08

cesarnicola


People also ask

What is UIActivityIndicatorView?

A view that shows that a task is in progress.

How do I increase the size of the activity indicator in Swift?

Now, we'll create an outlet of activity indicator in our view controller and in the viewDidLoad method of this class we'll add the code below. We'll use CGAffineTransform to change the scale of our indicator. When we change the scale to 2.5x this is how it looks on the iPhone.


2 Answers

Actually, you can set the indicator style of your UIActivityIndicatorView to Large White, and then in code do this:

// Objective-C
[myActivityView setColor:[UIColor grayColor]];
// Swift 4.0
myActivityView.color = .grayColor
like image 67
user698789 Avatar answered Nov 10 '22 00:11

user698789


Swift 2.0 Solution

myActivityView.activityIndicatorViewStyle = UIActivityIndicatorViewStyle.WhiteLarge
myActivityView.color = UIColor.grayColor()
like image 34
Chadmart Avatar answered Nov 10 '22 00:11

Chadmart