Reputation: 4350
If I have a project that was written for iphone and a project written for ipad. Is there a recommended way to combine them into a universal app?
My understanding is that you would take the existing app (iphone project) and convert it to a universal app then rename the classes to class_iphone, class_ipad etc.
The process of coverting includes xcode generating a new MainWindow nib for the ipad and other related files... But this sound painful to go into the project and duplicate the files etc..
please advise.
Upvotes: 3
Views: 1059
Reputation: 4985
You may have to rename your NIBs to be iPhone and iPad specific, but you shouldn't have to do that with your classes. I am not saying that it won't be painful - just that it will be a different kind of pain. You will need to wrap certain code in:
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
{
}
else
{
}
And you will need to be careful about classes (like UIPopoverController) that are specific to iPads.
Upvotes: 2