iPad 2 (non-retina), iOS 7.0.2, Xcode 5.0

I have a UIViewController that I'm setting the background image of:
   viewController.backgView.image=[UIImage imageNamed:@"background"];
The image is sized at 768x1024, which is the resolution of the iPad display.

But when I run the app on the iPad (or simulator), the image looks like it's 
been doubled in size. It's so large only the top left quadrant is visible. It 
looks like it's been zoomed in 2X normal. If I supply an image sized 384x480 it 
fits correctly but looks low-res on the display. In Xcode, I have "Targeted 
Device Family" set to iPad only, and UI_USER_INTERFACE_IDIOM is defined at run 
time.

Is there an Apple document that describes how to correctly size images for the 
various iOS devices?


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to