Image Orientation for Landscape Applications

Discussion in 'iOS Programming' started by DataBits, Oct 24, 2008.

  1. DataBits macrumors newbie

    Joined:
    Aug 30, 2008
    #1
    What is the best practice for image orientation when an iPhone application is intended to always operate in a dedicated landscape mode?

    Is is best to orient the original image resources that are part of the application bundle at a 90 degree rotation so that it automatically displays properly in landscape mode on the iPhone or is best practice to leave the images in portrait (as loaded in Photoshop) and then use a transform method such as CGAffineTransformRotate to rotate the images for landscape mode on the iPhone?

    Thanks.
     
  2. SqueegyX macrumors regular

    Joined:
    Mar 24, 2008
    #2
    You should be the entire view in your view controller. When your view has controls in it, images or otherwise, they get rotated along with their super view.

    So leave them upright, and rotate the super view, don't rotate each image.
     

Share This Page