title: why self.view.frame and self.view.bounds are different when the devices rotate?
body: <p>I want to do some layout change when the devices rotate. So I implement <code>- (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration</code> method to do the work. But I realize when this method is called the self.view.frame  and self.view.bounds are different. The self.view.bounds.size is correct and the self.view.frame.size seems still not rotate. </p>
  
  <p>For example, I created an empty singleView Project and implemented the method like follows:</p>
  
  <pre><code>- (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration
  {
      NSLog(@"willAnimateRotationToInterfaceOrientation");
  
      NSLog(@"self.view.bounds.size width:%f height:%f ",self.view.bounds.size.width,self.view.bounds.size.height);
      NSLog(@"self.view.frame.size width:%f height:%f",self.view.frame.size.width,self.view.frame.size.height);
  
  }
  </code></pre>
  
  <p>when the device rotates from portrait to landscape. the output is as follows:</p>
  
  <pre><code>2013-06-11 11:57:46.959 viewDemo[95658:707] willAnimateRotationToInterfaceOrientation
  2013-06-11 11:57:46.961 viewDemo[95658:707] self.view.bounds.size width:1024.000000 height:748.000000 
  2013-06-11 11:57:46.961 viewDemo[95658:707] self.view.frame.size width:748.000000 height:1024.000000
  </code></pre>
  
  <p>I wonder why these sizes are different? They shouldn't be always the same? And when to choose which one to use?</p>
  
  <p>Any help will be appreciated.</p>