Sometimes, you need to vary your code depending on the environment (DEBUG, RELEASE, your custom one). One of the most common use cases is to use different urls or credentials in development and production. The simplest way is to use conditional compilation coupled with various schemes and build settings (and even targets if that's required). In this video, I'm going to show you a simple example - varying the screen's background color depending on the build configuration settings.
0 Comments