2012-11-26 84 views
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]; 

回答

0

問題是這樣的:coransStar1.image = starImage;

我不知道爲什麼,但是當我刪除那條線時(本來不應該在那裏,問題就消失了)

相關問題