title: deprecated warnings in xcode and how to handle deprecation
body: <pre><code>if ([self respondsToSelector:@selector(dismissViewControllerAnimated:completion:)])
       {[[self presentingViewController] dismissViewControllerAnimated:YES completion:nil];} //post-iOS6.0
  else {[self dismissModalViewControllerAnimated:YES];} //pre-iOS6.0
  </code></pre>
  
  <p>I'm doing the responds to selector (above) code to handle deprecated methods. That way my app is compatible with older versions of iOS, but I'm getting warnings in my code stating: "'dismissModalViewControllerAnimated:' is deprecated: first deprecated in iOS 6.0"
  I personally don't like any warning in my code, but more importantly, I read somewhere that apple will complain about warnings in your code.</p>
  
  <p>1) Will Apple complain about warnings in your code?</p>
  
  <p>2) Am I handling deprecated methods correctly?</p>
  
  <p>3) Is there way to turn deprecated method method warnings off?</p>