curiouswebster
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)
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You are welcome
ASKER