我尝试使用以下代码创建活动指示器
CGRect frame = CGRectMake(160, 160.0,40.0,40.0);
progressIndicator = [[[UIActivityIndicatorView alloc] initWithFrame:frame]autorelease];
[progressIndicator startAnimating];
progressIndicator.activityIndicatorViewStyle = UIActivityIndicatorViewStyleWhiteLarge;
progressIndicator.hidesWhenStopped=YES;
[progressIndicator sizeToFit];
[self.view addSubview:progressIndicator];
此代码在除 iphone 4 之外的所有设备中都能正常工作(即指示器未在 iphone 4 中显示)。出于这个原因,我被迫将 UIActivityIndicatorViewStyleWhiteLarge 更改为 UIActivityIndicatorViewStyleGray 以便在所有设备中显示活动指示器。谁能解释我为什么会这样?