title: How to make app fully working correctly for autorotation in iOS 6?
body: <p>In iOS6, <code>shouldAutorotateToInterfaceOrientation</code> is deprecated. I tried to use  <code>supportedInterfaceOrientations</code> and <code>shouldAutorotate</code>  to make app working correctly for autorotation but failed.</p>
  
  <p>this ViewController I don’t want to rotate, but it doesn't work.</p>
  
  <pre><code>- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
  {
      return (interfaceOrientation == UIInterfaceOrientationPortrait);
  }
  
  -(BOOL)shouldAutorotate
  {
      return NO;
  }
  
  -(NSUInteger)supportedInterfaceOrientations
  {
      return UIInterfaceOrientationMaskPortrait;
  }
  </code></pre>
  
  <p>Any ideas? 
  Thanks for any help in advance!</p>