• 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
Re: Correctly setting UIViewController backgView.image size
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Correctly setting UIViewController backgView.image size


  • Subject: Re: Correctly setting UIViewController backgView.image size
  • From: Carl Hoefs <email@hidden>
  • Date: Wed, 16 Oct 2013 14:06:13 -0700

The problem seems to be that the iPad & Simulator are running the app in 2X mode, not sure why.
Perhaps best moved to the Xcode list.

On Oct 16, 2013, at 1:37 PM, Carl Hoefs <email@hidden> wrote:

> 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


References: 
 >Correctly setting UIViewController backgView.image size (From: Carl Hoefs <email@hidden>)

  • Prev by Date: Correctly setting UIViewController backgView.image size
  • Next by Date: Re: Cocoa class extension best practice
  • Previous by thread: Correctly setting UIViewController backgView.image size
  • Next by thread: Re: Any way to get a warning if a non-boolean type is used in an if expression?
  • Index(es):
    • Date
    • Thread