title: How to define variable depend on condition in XCode
body: <p>I want to define some variables depend on whether it is run on Iphone or Ipad application. So I wrote this code </p>
  
  <pre><code>if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
      #define ABC @"122"
      NSLog(@"Ipad");
  } else {
      #define ABC @"123"
      NSLog(@"iphone ");
  }
  NSLog(@" %@", ABC);
  </code></pre>
  
  <p>But in both iphone and Ipad it show 123. </p>