views:

387

answers:

4

I noticed in one of my apps that the activity indicator doesn't seem to work on an iPhone 4. It works fine on an old iPhone upgraded to iOS 4 just not on an iPhone 4. Does anyone know why it isn't working?

+1  A: 

oddly it uses a transparent alpha channel on the iPhone 4. A solution may be to add a kind of background...

Matthias
A: 

I had the same problem, but found that if I coded it rather than using Interface Builder it worked.

mick80234
A: 

If your design allows, you can also use the UIActivityIndicatorViewStyleGray or attempt to add a dark shadow to the activityView's layer.

joshpaul
+1  A: 

This code should do the job, is that correct;)?

#import <QuartzCore/QuartzCore.h>

...

activityIndicatorInstance.layer.shadowColor = [UIColor grayColor].CGColor;
activityIndicatorInstance.layer.shadowRadius = 1;
activityIndicatorInstance.layer.shadowOpacity = 0.5;
activityIndicatorInstance.layer.shadowOffset = CGSizeMake(0, 1);
joshis
This does work pretty well.
Will Harris