title: Stop UIView from roating into landscape
body: <p>I have a UIView thats inside a navigation controller, I am trying to prevent this view from going into Landscape however the method I am trying to use never fires.. code is below any help would be greatly appreciated..</p>
  
  <pre><code>- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
  {
      if(interfaceOrientation == UIInterfaceOrientationLandscapeRight)
      {
          return NO;
      }
      else if(interfaceOrientation == UIInterfaceOrientationLandscapeLeft)
      {
          return NO;
      }
      return NO;
  }
  </code></pre>