According to the iOS Reference Library:
In iOS 4.0 and later, it is possible to mark individual resource files as usable only on a specific type of device.
Does this mean that if you're creating an Universal app for 3.X devices, and the 3.2 iPad in particular, you can't use device-specific resources with the ~ipad
and ~iphone
sufixes?
If so, is this the correct way to deal with device-specific resources?
UIImage* anImage;
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
anImage = [UIImage imageNamed:@"MyImage-iPad.png"];
} else {
anImage = [UIImage imageNamed:@"MyImage-iPhone.png"];
}
Any additional considerations I should know of?