title: How to execute a specific function only in DEBUG and AdHoc modes
body: <p>What i would like to do is a simple button with an action method, This button is initialized, created, assigned to its action method and shown ONLY in Debug and AdHoc modes. So as a developer or tester, i can see the button, but in the release, the client won't be able to see that button.</p>
  
  <p>What i did so far is the following:</p>
  
  <p>-In my <code>project--&gt;Build Settings</code> Tab, i set the Debug values to 1 in both Debug and Adhoc, like this:</p>
  
  <p><img src="https://i.stack.imgur.com/DYmAq.png" alt="enter image description here"></p>
  
  <p>-Then i opened up the prefix.pch file, and there, i am blocked and i don't know what to do.</p>
  
  <p>Basically, my action method is something like this:</p>
  
  <pre><code>UIButton btnSwitch=[[UIButton alloc]init];
  
  //Etc...
  </code></pre>
  
  <p>The above code should be called in a specific file (The UIViewController class which should contain the button).</p>
  
  <p>How can i do that, i mean, how can i tell my application to execute that code in a specific file only in DEBUG and Adhoc modes.</p>
  
  <p>Thanx in advance.</p>