title: Method "not available on iOS"
body: <p>I heard about a function on <code>NSCalendar</code> that had been introduced in iOS7.</p>
  
  <p>Had a look in the docs and couldn't find it. Nor in the OS X docs.</p>
  
  <p>The function is <code>- (BOOL)isDate:(NSDate *)date1 equalToDate:(NSDate *)date2 toUnitGranularity:(NSCalendarUnit)unit</code> i.e. are these two dates on the same day/in the same week/ month, etc...</p>
  
  <p>However, when I try to use it in Xcode 5. The AutoComplete shows it with a red strike through and then when I actually use it I get this error...</p>
  
  <p><img src="https://i.stack.imgur.com/A5QG2.png" alt="enter image description here"></p>
  
  <p>It's odd as the function is clearly there I'm just not able to use it.</p>
  
  <p>Can anyone shed light on why this is happening?</p>