0

I've written an app that supports only landscape mode. For some reason, it is being very stubborn. It launches and runs great on the simulator, but when I go to launch it on my device, it will not launch or rotate to landscape mode at all. I'm running 5.1 on my iPad, and using Xcode 4.6.2. Here is everything I've tried after searching on this site for a solution:

  1. Edited my -info.plist and deleted support for portrait mode in the supported orientation interface options

  2. In the projects target, in the supported interface orientations I highlighted only landscape left and right

3 Added:

(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {     
    return (interfaceOrientation == UIInterfaceOrientationLandscapeLeft || interfaceOrientation == UIInterfaceOrientationLandscapeRight);
}

To my only ViewController file. It runs in landscape only on the simulator, but is being very difficult on my device. Does anyone have any ideas?

Brian
  • 14,610
  • 7
  • 35
  • 43
Henry F
  • 4,960
  • 11
  • 55
  • 98

1 Answers1

0

Check this tech note, it describes the opposite of your problem but the resolution is the same.

Wain
  • 118,658
  • 15
  • 128
  • 151
  • I'm still very new to Objective-C, I read through it and am trying some of it but it goes way over my head. – Henry F May 22 '13 at 20:57
  • Could you help me out with what the resolution is? – Henry F May 22 '13 at 21:13
  • Go through each method described in the top half of the document and implement it. You should consider all methods, both iOS 5 and 6. If the app only supports landscape the implementation should be quite obvious as each method can only return a couple of values. – Wain May 22 '13 at 21:18
  • I've implemented everything, for some reason it still won't work. – Henry F May 22 '13 at 21:31
  • Have you added breakpoints to check which ones are being called at runtime? – Wain May 22 '13 at 21:36