title: Rotating all the views of a TabBarController
body: <p>I have a TabBarController app with 4 views.
  I've put on all the 4 viewControllers the autorotate method returning yes : </p>
  
  <pre><code>-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation {
      return YES;
  }
  </code></pre>
  
  <p>Thanks to this, now when i rotate the iPhone the rotation works, and even the TabBar is rotated.</p>
  
  <p>In every single view i can use the following code to update to view when the rotation occurs:</p>
  
  <pre><code>- (void) willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration {
      [self adjustViewsForOrientation:toInterfaceOrientation];
  }
  
  - (void) adjustViewsForOrientation:(UIInterfaceOrientation)orientation {
      if (orientation == UIInterfaceOrientationLandscapeLeft ||
          orientation == UIInterfaceOrientationLandscapeRight) {
  
  //Here i can update the view when it goes to landscape
  
      }
      else if (orientation == UIInterfaceOrientationPortrait ||
               orientation == UIInterfaceOrientationPortraitUpsideDown) {
  
  //Here i can update the view when it goes to portrait
  
      }
  
  }
  </code></pre>
  
  <p><strong>The problem is that when i make the rotation, only the current displayed view is updating. If later i change view clicking on the tabBar, i see the view not updated for the new orientation.</strong></p>
  
  <p>Is there a way to make all the views being aware of the orientation changed? </p>