title: Autorotate a single UIViewController in iOS 6 with UITabBar
body: <p>I have an app that work only in <code>Portrait Mode</code>, but there is a singleView that can display video, so i want that view work also in the <code>landscape mode</code>, but in iOS 6 I can't figure out how I can do it, now I have this:</p>
  
  <p>In AppDelegate.m i have:</p>
  
  <pre><code>self.window.rootViewController = myTabBar;
  </code></pre>
  
  <p>then in the Summary of the project:</p>
  
  <p><img src="https://i.stack.imgur.com/8HLOz.png" alt="enter image description here"></p>
  
  <p>and i found that in iOS 6 to detect the view rotation i have to do this:</p>
  
  <pre><code>- (NSUInteger)supportedInterfaceOrientations {
  return UIInterfaceOrientationMaskAll;
  }
  
  // Tell the system It should autorotate
  - (BOOL) shouldAutorotate {
  return YES;
  }
  </code></pre>
  
  <p>so i insert the code above only in my <code>UIViewController</code> that I want use also in landscape, but don't work, anyone knows how i can do it? i just want the autorotate when show video.</p>