0

I have an app running in landscape mode (home button on right) I built long time ago using Xcode 4. It loads a 480 x 320 png file as background image and has been working well. Recently I updated my Xcode to 5 and the image is loaded in a portrait orientation not landscape anymore. I thought it was an Xcode compatibility issue and easy to fix first but couldn't find my way out and had to ask for some help here.

pinux
  • 1

1 Answers1

0

I have found that Xcode 5 sometimes disregards the settings for orientation when converting or interpreting an old project file. Find the place where you set the orientation for your target and set the orientation again explicitly.

Mundi
  • 79,884
  • 17
  • 117
  • 140
  • I have tried to set device orientation in both project settings and programatically in the view controller. Neither helped. I think somehow the device orientation is not respected by the App. – pinux Nov 03 '13 at 20:06
  • Did you only do this in the project settings or also in the target settings (tab "General" section "Deployment Info")?. – Mundi Nov 04 '13 at 08:23