objective c - Two iPhone Apps with same code base -


I want to create two iPhone apps with very similar code base. The only difference would be some settings and UI skin. Is it a better way to set up than to create two encoded projects and copy all the code? For better maintenance? 95% of the code is the same.

Yes, you can do this

for each version of your code For the difference, you can use C preprocessor instructions. #ifdef and related commands

To differentiate the UI, you can create more than one goal by using different XIB files if you wish.

For settings differences, you can also create each one target using different .info files.

XCODE


Comments