title: Device orientation will change instead of has changed
body: <p>Is there any way I can perform code before the device orientation animation finishes?</p>
  
  <p>Right now I'm adding myself as an observer to UIDeviceOrientationDidChangeNotification</p>
  
  <p>However I need my code to finish before the change actually occurs not after.</p>