次のコードを使用してアクティビティインジケーターを作成しようとしました
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に変更する必要がありました。なぜこれが起こるのか誰かが私に説明できますか?