title: How rotate view to landscape in a tabbar app
body: <p>I have a tabbar based app.</p>
  
  <p>I build 2 views, one in portrait and another in landscape mode in the Interface Builder.</p>
  
  <p>Now, I wanna something like the iPod App. I wanna the landscape view to be fullscreen, and hide the tabbar &amp; the status bar.</p>
  
  <p>I make to work the basic of this:</p>
  
  <pre><code>- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation
                                  duration:(NSTimeInterval)duration { 
      if (self.landscape) {
          if (toInterfaceOrientation == UIInterfaceOrientationPortrait)
          {
              self.view = self.portrait;
              self.view.transform = CGAffineTransformMakeRotation(degreesToRadian(360));
          }
          else if (toInterfaceOrientation == UIInterfaceOrientationLandscapeLeft)
          {
              self.view = self.landscape;
              self.view.transform = CGAffineTransformMakeRotation(degreesToRadian(-90));
          }
          else if (toInterfaceOrientation == UIInterfaceOrientationLandscapeRight)
          {
              self.view = self.landscape;
              self.view.transform = CGAffineTransformMakeRotation(degreesToRadian(90));
          }
          else
          {
              self.view = self.portrait;
              self.view.transform =  CGAffineTransformMakeRotation(degreesToRadian(-180));
          }
      }
  }
  </code></pre>
  
  <p>But all work messy. The landscape view not correctly fill the area and the controls are located in wrong locations, diferent as desingned first.</p>
  
  <p>Also, I still not found a way to hide everything else...</p>