Link to home
Start Free TrialLog in
Avatar of curiouswebster
curiouswebsterFlag for United States of America

asked on

I need two iPhone executables

I am making an iPhone app using using Xcode and Objective-C.  I will have a free version and a paid version.  They will be identical, but the free version can not create content, just read content and use it.

If this were a program using C# or C++ I would simply create a compiler directive, called whatever I wanted, such as FULL_VERSION.

Then I would use the correct syntax for
#if def FULL_VERSION
// add code which creates writeable content
#else
// add code which which explains the value of the upgrade and give access to IAP
// so the user can make an In-App Purchase of the upgrade
#endif

Is this still the way to solve this problem using Xcode and Objective-C.  (I may have not used the correct syntax, but that's not my question)
ASKER CERTIFIED SOLUTION
Avatar of pgnatyuk
pgnatyuk
Flag of Israel image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of curiouswebster

ASKER

Thanks.
You are welcome