I insert an UIActivityIndicator on my loading screen.
When I changed the color to black color it all work fine on devices with iOS 6.0 version however its crash on devices with older versions.
here is my code:
indicator = [[UIActivityIndicatorView alloc]initWithFrame:CGRectMake(110, 275, 30, 30)];
[indicator setColor:[UIColor blackColor]];//in this line i get crash.
[indicator startAnimating];
[self addSubview:indicator];
can someone tell me how can i fix this issue?
Thanks a lot,
Elad.
UIActivityIndicatorViewonly supports changing the color on iOS 5.0 and above.You can test whether the
UIActivityIndicatorViewsupports changing the color usingrespondsToSelector:.