title: Set different supportedInterfaceOrientations for different UIViewControllers
body: <p>So, as by the question, I use the following code to set userinterfaceOrientation for the viewcontroller. </p>
  
  <pre><code>- (BOOL) shouldAutorotate
  {
      return YES;
  }
  
  -(NSUInteger)supportedInterfaceOrientations
  {
      return UIInterfaceOrientationMaskPortrait;
  }
  </code></pre>
  
  <p>I tried setting <code>UIInterfaceOrientationMaskAll</code> for another viewController.</p>
  
  <p>Prior, I checked all the items for <code>Supported interface orientations</code> in the info-plist. Both the viewControllers returned <code>true</code>(as set in the info-plist) for all the orientations and didn't obey the above code. IT worked even in the absence of the above code. Is there anyway to restrict certain <code>Supported interface orientations</code> for particular classes? I made it working for the pre - iOS6 versions by following <a href="https://stackoverflow.com/a/7264053/1424174">this link</a>.</p>