0
votes

So I have been doing some research on how to handle the different resolutions of iPhone screens. In the documention, found here: https://developer.apple.com/iphone/library/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/SupportingResolutionIndependence/SupportingResolutionIndependence.html#//apple_ref/doc/uid/TP40007072-CH10

They say that using a naming convention and doubling your number of assets is how to do it. This is all well and good for local images, but Doesn't discuss how to get images from a server. Do I just need to query the device resolution before I pull the appropriate image from the server? Is it just that simple?

1
Check out [UIScreen mainScreen].scalejtbandes
scale will not work on older devices, just iOS 4.Duck

1 Answers

0
votes

iPhone 4 has twice as pixels as older devices. Your image has to have twice as pixels if you want the image to be crisp on iPhone 4. So, that's it, you test to see which device is there and pull the image on the proper resolution.