title: How to force a screen orientation in specific view controllers?
body: <p>My application is pretty simple: it starts up with a view controller that holds a table view (in grouped view layout) with a few options. When the user taps on one of the options, I push another view controller onto my navigation controller.</p>
  
  <p>This second view controller simply displays a UIImageView, and the user can change the screen orientation on this view controller between portrait/landscape modes. This works just fine, and all is happy.</p>
  
  <p>However, if the user taps on the "Back" button on my navigation bar while on the landscape mode, the first controller's layout is all messed up. See below for before/after screenshots:</p>
  
  <p><a href="https://i.stack.imgur.com/HCftn.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HCftn.jpg" alt="before"></a><br>
  <sub>(source: <a href="http://pessoal.org/shot1.jpg" rel="nofollow noreferrer">pessoal.org</a>)</sub><br>
   <a href="https://i.stack.imgur.com/D0qzp.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/D0qzp.jpg" alt="after"></a><br>
  <sub>(source: <a href="http://pessoal.org/shot2.jpg" rel="nofollow noreferrer">pessoal.org</a>)</sub>  </p>
  
  <p>Any clues on how to force the first view controller (second screenshot in this post) to stay within the portrait screen orientation?</p>