Correctly setting UIViewController backgView.image size
Correctly setting UIViewController backgView.image size
- Subject: Correctly setting UIViewController backgView.image size
- From: Carl Hoefs <email@hidden>
- Date: Wed, 16 Oct 2013 13:37:19 -0700
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 (email@hidden)
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:
This email sent to email@hidden