title: Manage Orientation Change in Xcode without duplicating logic
body: <p>I'm developing an iPhone app on Xcode version 4.6.3 using storyboards.  I was wondering if there is any way to set up my layout using the GUI storyboard interface differently for portrait and landscape.  Right now, the only solution I can see is to make 2 separate view controllers.  The problem with this is I have a lot of controls, and most of my code is in my View Controller class.  I don't want to have to duplicate all of my code just for it to work on a different orientation.  I also tried using two different views and hiding one of them based on the orientation.  I could only set up outlets for one of the views, so the code did not execute in the other orientation.  Any help would be appreciated.  Thank you.</p>