Re: Best way to convert existing app to a different app?
Re: Best way to convert existing app to a different app?
- Subject: Re: Best way to convert existing app to a different app?
- From: Matt Neuburg <email@hidden>
- Date: Sat, 17 Dec 2011 20:29:38 -0800
On Sat, 17 Dec 2011 12:45:07 -0700, Philip McIntosh <email@hidden> said:
>I have an existing project that I'd like to use to create a new but different app with a different name.
>
>I have tried creating a new project and then copying the relevant files over from the existing project into the new project and edited them to have names related to the new app (eg.. FooViewController.h became BarViewController.h). I also copied the xib over and then redesigned it to meet the requirements of my new app idea. This almost worked, except that the app would not display the newly modified xib and kept displaying the previous xib, even though I had the new (copied) xib connected to the new Window and view controller (at least according to the file inspector they were properly connected).
I don't buy that. It displayed exactly what you were telling it to display. If you don't understand why, perhaps you don't understand the nib-loading mechanism and you need to stop and understand it before you do anything else. There isn't anything indeterminate about what (possibly nib-loaded) view is associated with what view controller, or what a view controller's position is in the view controller hierarchy, or when and where a view controller's view is displayed in the interface. If you're just guessing, stop guessing.
You shouldn't take that in an insulting or personal way; I really am giving what I think, from what you say, is the advice you actually need here.
>So, my question is, what is the quickest and most trouble-free way to use existing code to create a new app?
The way you were doing it is fine. In fact, I just did exactly what you describe: the app store has just released two apps of mine, J&SLatinVocab and JACTGreekVocab, and I wrote them by writing one, then starting a new project and copying all the files into it, and modifying them to get the other.
m.
--
matt neuburg, phd = email@hidden, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
Programming iOS 4!
http://www.apeth.net/matt/default.html#iosbook _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden