Note that there are some explanatory texts on larger screens.

plurals
  1. POshouldAutorotateToInterfaceOrientation doesn't work
    primarykey
    data
    text
    <p>I've been writing my Universal application in portrait mode, and now after about 15 nib files, many many viewCotnrollers, I'd like to implement the shouldAutorotateToInterfaceOrientation and design some screens in Landscape mode.</p> <p>adding :</p> <pre><code>- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return YES; } </code></pre> <p>to ALL of my viewControllers, does not do the work.</p> <p>During Debug, i see that this method is called, but it just won't work! not in the simulator, not in the device, not in Iphone, not in Ipad!</p> <p>i've searched some answers in the forum, and saw some advises to use:</p> <pre><code>- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return (interfaceOrientation == UIInterfaceOrientationPortrait || interfaceOrientation == UIInterfaceOrientationLandscapeLeft || interfaceOrientation == UIInterfaceOrientationLandscapeRight || interfaceOrientation == UIInterfaceOrientationPortraitUpsideDown ); } </code></pre> <p>Didn't worked either,</p> <p>adding:</p> <pre><code> [[UIDevice currentDevice] beginGeneratingDeviceOrientationNotifications]; </code></pre> <p>and</p> <pre><code> [[UIDevice currentDevice] endGeneratingDeviceOrientationNotifications]; </code></pre> <p>to my viewDidLoad and viewDidUnload respectively didn't worked either.</p> <p>I'm lost.. Any help will do!</p> <p>just one more info... all my Views are of type UIControl, as i needed the TuchUpInside to work.</p> <p>Appriciate your help.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload