0
除了當我使用「動畫影像」時,我的應用在Retina屏幕上適當地顯示「@ 2x」版本的圖像。在Retina屏幕上,它顯示這些animationImages兩倍的大小。這是一個錯誤?或者我在這裏做錯了什麼?動畫影像不適用於視網膜屏幕
-(void)viewDidLoad;
coransStar1 = [[[UIImageView alloc] initWithFrame:CGRectMake(46, 272, 48, 45)] autorelease];
coransStar1.image = starImage;
coransStar1.opaque = YES;
NSArray * imageArray = [[NSArray alloc] initWithObjects:
[UIImage imageNamed:@"star1"],
[UIImage imageNamed:@"star2"],
[UIImage imageNamed:@"star3"],
[UIImage imageNamed:@"star4"],
[UIImage imageNamed:@"star5"],
[UIImage imageNamed:@"star6"],
[UIImage imageNamed:@"star7"],
[UIImage imageNamed:@"star8"],
nil];
coransStar1.animationImages = imageArray;
coransStar1.animationDuration = 1.1;
coransStar1.contentMode = UIViewContentModeBottomLeft;
[coransView addSubview:coransStar1];
[coransStar1 startAnimating];