title: How do I make a universal iPhone / iPad application that programmatically uses UISplitViewController and UINavigationController?
body: <p>I couldn't find a good answer anywhere to this.  I am using a UINavigationController for my iPhone app, with everything is generated programmatically, nothing in Interface Builder.  I am trying to port my app to iPad, using a UISplitViewController and my existing UINavigationController, but I am not sure where I should have the logic of my program separating the view controllers for iPhone or iPad.</p>
  
  <p>Do I set up my main file to use a different app delegate or do I use the same app delegate and have the user interface conditionally set up within it? </p>
  
  <p>Besides this, whenever I try to compile my app on the simulator it does not recognize the UISplitViewController or even the condition in which I check if the class exists.</p>
  
  <p>Can please someone put me in the right direction, remembering that I am not using any xibs?</p>