I am trying to make a lite version to my iPhone App. I followed this tutorial to the dot and copied the target. Everything there went great but when I enter -DLITE_VERSION
into the LLVM GCC 4.2 - Language
setting in the build tab, the define does not work correctly. When I enter #ifdef LITE_VERSION
, I build without errors but yet the button that I am trying to set as hidden is still showing. Any idea's. BTW I change the active scheme by selecting it from the bar right next to the run button on the top left of xcode 4.
Here is my code:
#ifdef LITE_VERSION
[play setHidden:YES];
#else
[play setHidden:NO];
#endif