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