title: Disabling auto rotation for a UIView
body: <p>My application is composed of a toolbar and an AVCaptureVideoPreviewLayer in a background UIView.
  I'd like to see that toolbar rotate regarding the device orientation, so in my main ViewController, I implemented the function :</p>
  
  <pre><code>- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
  {
      return (interfaceOrientation == UIInterfaceOrientationPortrait
              || interfaceOrientation == UIInterfaceOrientationLandscapeLeft
              || interfaceOrientation == UIInterfaceOrientationLandscapeRight);
  }
  </code></pre>
  
  <p>This works fine, but when the interface orientation is changed, I see that the background UIView (with a video layer) is also rotating, so my video view is now playing 90 degrees left or right... Which is not really cool !<br>
  So my question is : is there any way to disable the auto-rotation animation on a specific UIView ?</p>
  
  <p>I have seen one similar question to this one : <a href="https://stackoverflow.com/questions/2191522/disabling-autorotate-for-a-single-uiview">Disabling autorotate for a single UIView</a>, but the answers doesn't fit my problem, I really need the background view to do not move, not to get around the problem with a kind of "counter animation". So I decided to bring up this topic.  </p>
  
  <p>Any ideas ?  </p>
  
  <p>Thanks ! </p>