title: View rotation notifications: why didRotateFromInterfaceOrientation: doesn't get called?
body: <p>I'm trying to detect any device orientation change so that I can update the views.</p>
  
  <p>I want to update the views whether the orientation is portrait or landscape, so I implemented this method:</p>
  
  <pre><code>- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
  // Return YES for supported orientations.
  return (interfaceOrientation == UIInterfaceOrientationPortrait || interfaceOrientation == UIInterfaceOrientationLandscapeRight || interfaceOrientation == UIInterfaceOrientationLandscapeLeft);
  }
  </code></pre>
  
  <p>I know that if I want to update the views to show properly for the current orientation, I will need to implement some of the following methods:</p>
  
  <pre><code>– willRotateToInterfaceOrientation:duration:
  – willAnimateRotationToInterfaceOrientation:duration:
  – didRotateFromInterfaceOrientation:
  – willAnimateFirstHalfOfRotationToInterfaceOrientation:duration:
  – didAnimateFirstHalfOfRotationToInterfaceOrientation:
  – willAnimateSecondHalfOfRotationFromInterfaceOrientation:duration:
  </code></pre>
  
  <p>Now, the problem is that I don't understand why none of these methods get fired when I rotate the simulator. </p>
  
  <p>I tried as well this piece of code:</p>
  
  <pre><code>[[UIDevice currentDevice] beginGeneratingDeviceOrientationNotifications];
  </code></pre>
  
  <p>But still nothing. So I'm wondering, does the simulator fire rotation notifications?
  If yes, what am I doing wrong?</p>