Same App with two UIs (iPhone and iPad Version)

Hello, is it possible to develop an app that has the same feature set, but two totally different UIs?

I would like to make an iPad app that will more than likely become an iPhone app. I don't want to just copy the code and rebuild it, because later on when I make change to the code I want it to be reflected in both apps. If I make it universal then everything will look squashed when I later build the iPhone version.


Essentially I want have two storyboards (iPhone and iPad) and have them Use the same code behind.

Thanks,

TWOLFF

Replies

>If I make it universal then everything will look squashed when I later build the iPhone version.


You're mandated to make a Universal app if you want to support both. Setting that flag, however, doesn't get you automatic UI support. That work is non-trivial in most cases and on the dev to accomplish.


Try creating a new app via a simple Xcode template, choosing Universal vs. just iPhone or just iPad. Run that on both devices and observe how it acts differently.


See the docs on autolayout for starters.


Good luck.