I am, in all basics, wanting to have a view for iPhones, and one for iPads. However, I want to use the same view controllers for both of them, since they are the same thing, just optimized for each device.
I know it’s possible to do this, because it is a universal app and the default views for a universal project include one main view for iPhones, and one main view for iPads. However, they’re implemented automatically and so I don’t know how to replicate this.
So, the jist of this question is: How do you have two xibs connected to one viewcontroller?
Thanks,
- Jake
in code.. wherever you lot the new view ..do like this
You will have to replace the nib name and class name with yours..
Above that…one more important step is to go in each xib file..click on File Owner.. and in the i*dentity inspector* (icons on the top right side) .. make sure it is of class YOurViewController