Xcode iphone project and ipad project into universal app?

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.

Up vote 1 down vote favorite share g+ share fb share tw.

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.

Iphone objective-c xcode ipad link|improve this question asked Nov 13 '10 at 2:02magic-c0d3r342118 66% accept rate.

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.

The ipad has a few more entities and I don't want to write the migration or combine the datamodel – magic-c0d3r Nov 13 '10 at 3:08 If I don't use any nib or interface builder couldnt I just modify the main. H and use your if statement (above) to launch the correct appDelegate? – magic-c0d3r Nov 13 '10 at 6:08 I would think so.

And have, as you described in your original posting, essentially two complete and distinct application code bases in a single executable? It sounds like a doable first step. I haven't done this.

I have only generalized a working iPhone app to be a universal iOS app. – westsider Nov 13 '10 at 13:37.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions