title: NSTextCheckingResult for phone numbers
body: <p>Can someone tell me why this evaluates every time to true?!</p>
  
  <p>The input is: <code>jkhkjhkj</code>. It doesn't matter what I type into the <code>phone</code> field. It's every time true...</p>
  
  <pre><code>NSRange range = NSMakeRange (0, [phone length]);    
  NSTextCheckingResult *match = [NSTextCheckingResult phoneNumberCheckingResultWithRange:range phoneNumber:phone];
  if ([match resultType] == NSTextCheckingTypePhoneNumber)
  {
      return YES;
  }
  else 
  {
      return NO;
  }
  </code></pre>
  
  <p>Here is the value of <code>match</code>:</p>
  
  <pre><code>(NSTextCheckingResult *) $4 = 0x0ab3ba30 &lt;NSPhoneNumberCheckingResult: 0xab3ba30&gt;{0, 8}{jkhkjhkj}
  </code></pre>
  
  <p>I was using RegEx and <code>NSPredicate</code> but I've read that since iOS4 it's recommended to use <code>NSTextCheckingResult</code> but I can't find any good tutorials or examples on this.</p>
  
  <p>Thanks in advance!</p>