How do I make a universal iPhone / iPad application that programmatically uses UISplitViewController

Posted by arash13 on Stack Overflow See other posts from Stack Overflow or by arash13
Published on 2010-05-09T04:28:27Z Indexed on 2010/05/09 14:08 UTC
Read the original article Hit count: 345

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.

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?

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.

Can please someone put me in the right direction, remembering that I am not using any xibs?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about ipad