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?
A view that shows that a task is in progress.
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.
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
Swift 2.0 Solution
myActivityView.activityIndicatorViewStyle = UIActivityIndicatorViewStyle.WhiteLarge
myActivityView.color = UIColor.grayColor()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With