0
我用下面的代碼進行動畫處理我的公司徽標在應用主屏:的UIImageView動畫和視網膜圖像
NSArray *array = [[NSArray alloc] initWithObjects:
[UIImage imageNamed:@"logo_001.png"],
[UIImage imageNamed:@"logo_002.png"],
[UIImage imageNamed:@"logo_003.png"],
nil];
self.imageViewLogo.image = [array lastObject];
self.imageViewLogo.animationImages = array;
self.imageViewLogo.animationDuration = 1;
self.imageViewLogo.animationRepeatCount = 1;
[self.imageViewLogo startAnimating];
我應該如何處理這種情況下的視網膜@ 2X的圖像?
如果您的圖像名稱正確,iOS會自動使用@ 2x。即logo_01和logo_01 @ 2x。此外,你不需要把.png – mashdup