title: xcode - How do I keep views locked into portrait mode, but still allow one view to rotate?
body: <p>I'm having a problem with device rotation.  Except for ONE view, where I show a company splash screen, I want to lock all the remaining app views into Portrait display.  In the project settings the supported orientations are Portrait and LandscapeLeft.  In the 'Company Splash' it works fine and the view rotation is locked into LandscapeLeft no matter how I rotate the device.  On all the other views when I rotate the device to the left the view alters instead of staying in portrait display.  The methods are not even firing?  If I remove Landscape left from the supported Orientations in the project, that screws up the 'Company Splash' view.  I tried changing the <code>shouldAutorotate</code> return to <code>NO</code>, but that didn't help.  Tried to work my way through the suggestions posted <a href="https://stackoverflow.com/questions/12728390/portrait-and-landscape-mode-in-ios6">here</a>, but that didn't help.  If I put the following code into my AppDelegate.m, everything is locked into portrait mode and the 'Company Splash' crashes when accessed.</p>
  
  <pre><code>-(NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window
  {
      return UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown;
  }
  </code></pre>
  
  <p>How do I lock the view into portrait mode no matter how the device is rotated except for the one screen?  </p>
  
  <p>** method from the 'Company Splash' view.  Again, works like it is supposed to.</p>
  
  <pre><code>-(NSInteger)supportedInterfaceOrientations
  {
      return UIInterfaceOrientationMaskLandscapeLeft;
  }
  </code></pre>
  
  <p>** methods from all the other views, which rotate out of portrait when I don't want them to</p>
  
  <pre><code>-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
  {
      // IOS5 Only returning that it should rotate to potrait
      return (interfaceOrientation == UIDeviceOrientationPortrait);
  }
  
  -(BOOL)shouldAutorotate
  {
      // forcing the rotate IOS6 Only
      return YES;
  }
  
  -(NSInteger)supportedInterfaceOrientations
  {
      // return number or enum IOS6 Only
      return UIInterfaceOrientationMaskPortrait;
  }
  </code></pre>
  
  <p>I thought maybe it might be because a UITabBarController is the root controller and I'm in a ViewController off of that?  The methods are not even firing?</p>