title: What is the "right" way to handle orientation changes in iOS 8?
body: <p>Can someone please tell me the "right" or "best" approach to working with portrait and landscape interface orientations in iOS 8? It seems that all the functions I want to use for that purpose are deprecated in iOS 8, and my research has turned up no clear, elegant alternative. Am I really supposed to look at the width and height to determine for myself if we are in portrait or landscape mode?</p>
  
  <p>For example, in my view controller, how should I implement the following pseudocode?</p>
  
  <pre><code>if we are rotating from portrait to landscape then
    do portrait things
  else if we are rotating from landscape to portrait then
    do landscape things
  </code></pre>