title: Detecting iOS UIDevice orientation
body: <p>I need to detect when the device is in portrait orientation so that I can fire off a special animation. But I do not want my view to autorotate.</p>
  
  <p>How do I override a view autorotating when the device is rotated to portrait? My app only needs to display it's view in landscape but it seems I need to support portrait also if I want to be able to detect a rotation to portrait.</p>