title: iOS 8 Orientation Change Detection
body: <p>Running on iOS 8, I need to change the UI when rotating my app.</p>
  
  <p>Currently I am using this code:</p>
  
  <pre><code>-(BOOL)shouldAutorotate
  {
      UIDeviceOrientation orientation = [[UIDevice currentDevice] orientation];
      if (orientation != UIInterfaceOrientationUnknown) [self resetTabBar];
  
      return YES;
  }
  </code></pre>
  
  <p>What I do it remove the current UI and add a new UI appropriate to the orientation. However, my issue is that this method is called about 4 times every time a single rotation is made.</p>
  
  <p>What is the correct way to make changes upon orientation change in iOS 8?</p>