title: UIViewController didRotateFromInterfaceOrientation argument fromInterfaceOrientation returning garbage value
body: <p>When rotating the iPhone upside down during my tests, I found that while</p>
  
  <pre><code>- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation
  </code></pre>
  
  <p>gets called, the UIInterfaceOrientation parameter passed in as the argument is a garbage value (i.e. some random integer that is defined in the Apple documentation, instead of a UIInterfaceOrientation constant). How do I make it return a valid value?</p>