有什么我应该关心的,而不是确保我的图像有70 DPI?在准备我的图像时,我总是使用非视网膜设备的点尺寸和视网膜设备的双点尺寸。现在我一直认为PPI是我不关心的东西 - 它只是显示具体设备上的像素密度。与此同时,我遇到了一些棕色的应用项目并看到了类似的东西:
if ([deviceName isEqualToString:@"iPad1,1"] ||
[deviceName isEqualToString:@"iPad2,1"] ||
[deviceName isEqualToString:@"iPad2,2"] ||
[deviceName isEqualToString:@"iPad2,3"] ||
[deviceName isEqualToString:@"iPad2,4"])
_displayQuality = @"132";
else if([deviceName isEqualToString:@"iPad2,5"] ||
[deviceName isEqualToString:@"iPad2,6"] ||
[deviceName isEqualToString:@"iPad2,7"])
_displayQuality = @"163";
else if([deviceName isEqualToString:@"iPad3,1"] ||
[deviceName isEqualToString:@"iPad3,2"] ||
[deviceName isEqualToString:@"iPad3,3"] ||
[deviceName isEqualToString:@"iPad3,4"] ||
[deviceName isEqualToString:@"iPad3,5"] ||
[deviceName isEqualToString:@"iPad3,6"] ||
[deviceName isEqualToString:@"iPad4,1"] ||
[machineName isEqualToString:@"iPad4,2"])
_displayQuality = @"264";
else
_displayQuality = @"326";
....
任何想法到底是什么?
答案 0 :(得分:2)
不,只需使用视网膜(@ 2x.png)和非视网膜分辨率准备图像。 注意:iPhone 6将引入@ 3x.png图像
(编辑swith @ 3x从“谣言”到事实的信息)