I want to use different images in my iPhone application, depending on whether the current device is an iPhone 3G, iPhone 4, or iPad. I've tried getting the screen resolution (size) of the device, but it always returns 320 X 480 for the different iPhones.
How do I determine which type of device I'm running on so that I can provide the correct images?
I do not want to get the iPhone OS version.
i think below one solve my problem
https://github.com/erica/uidevice-extension/blob/master/UIDevice-Hardware.m
Thanks