Preprocessor Directives to separate targets in xcode

I have 2 targets on my project one production and one stage with different configurations. I want in the code to be able to say

#if target == production
#elif target == stage 

Can someone please tell me how can I do that?

Thank you,



You can define some Preprocessor Macros for each Target, like this...

And then you can do something like this:

   //some Code
#elif STAGE
   //some other Code
   //more Code^^

But be carefull if you need it in Debug- and/or in Release-Build, you have to declare it there.

Need Your Help

Css Background Image and Text in new line

html css

I am having problem with placing text below background image, I did play with CSS but no luck text is not moving to next line below image.

Destroy previous ViewPager item preventing back scrolling

android android-viewpager

I've added my code in below including some things I've tried. What I want is a sliding viewpager which doesn't allow you to through previous items but only forward. Preferably I would like to also ...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.