title: Preprocessor and/or Macro way to check iOS SDK version?
body: <p>I am buliding a dark themed iOS 6 and 7 app. I understand I can call <code>[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];</code> to make the iOS 7 status bar suit a dark color theme application.</p>
  <p>The problem is I am going to submit my app to the App Store and currently Xcode 5 is not ready for that, so I have to use Xcode 4.6.x to do this task. However with Xcode 4.6, I am not able to compile the new method from iOS 7. I think I have to do something like &quot;&quot;if ios7&quot;&quot; then do <code>[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];</code> and reposition my application window.</p>
  <p>I am trying to do this with <code>#ifdef</code> ... <code>#else</code>...
  this code is <code>[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];</code> inside the <code>viewDidLoad</code>.</p>
  <p>Could anyone help to understand how to use <code>#ifdef</code>... with the method in some functions.</p>