title: overriding method based on SDK version
body: <p>I am testing my app on Xcode 7 which is throwing me a warning for supportedInterfaceOrientations method. Prior to Xcode 7, the return type of this method was NSUInteger. Now it is UIInterfaceOrientationMask. What can I do so that it works for previous SDKs as well as the new one? I have done something like this:(I am not sure if this is the proper way)</p>
  
  <pre><code>#ifdef __IPHONE_9_0
  - (UIInterfaceOrientationMask)supportedInterfaceOrientations
  #else
  - (NSUInteger)supportedInterfaceOrientations
  #endif
  {
      return UIInterfaceOrientationMaskAll;
  }
  </code></pre>