title: How to #define based on iOS version?
body: <p>I have a <code>Constants.h</code> file in my app, where I <code>#define</code> app-wide things for easy access later. I'm having a hard time, though, <code>#define</code>ing based on iOS version. Here's what I've tried:</p>
  
  
  
  <pre><code>#ifdef __IPHONE_7_0
  
  #define kHamburgerImage [UIImage imageNamed:@"reveal_menu_icon_portrait_ios7.png"];
  
  #else
  
  #define kHamburgerImage [UIImage imageNamed:@"reveal_menu_icon_portrait.png"];
  
  #endif
  </code></pre>
  
  <p><sup>Just because it says iOS 7 in there doesn't mean this is under NDA, O closers!</sup></p>
  
  <p>Which works fine - <em>for iOS 7</em>. When I run my app on iOS 6, however, the <code>#define</code> is still the iOS 7 one - it seems as though the <code>#ifdef</code> is never taken into account.</p>
  
  <p>What can I do to fix this?</p>