• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Correctly setting UIViewController backgView.image size
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Correctly setting UIViewController backgView.image size
      • From: Carl Hoefs <email@hidden>
  • Prev by Date: Re: CFPreferencesAppSynchronize() "looping synchronize attempt"
  • Next by Date: Re: Correctly setting UIViewController backgView.image size
  • Previous by thread: Re: CFPreferencesAppSynchronize() "looping synchronize attempt"
  • Next by thread: Re: Correctly setting UIViewController backgView.image size
  • Index(es):
    • Date
    • Thread