title: Error while converting nsdata to nsstring
body: <p>I'm trying to convert <code>NSData</code> to <code>NSString</code> 
  Here's my code</p>
  
  <pre><code>NSData *Data = [[NSUserDefaults standardUserDefaults] objectForKey:@"phoneNumber"];
  NSString *getPhone = [NSString stringWithUTF8String:[Data bytes]];
  NSLog(@"%@",getPhone);
  </code></pre>
  
  <p>And the error I'm getting is </p>
  
  <pre><code> -[__NSCFData rangeOfString:]: unrecognized selector sent to instance
  *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFData rangeOfString:]: unrecognized selector sent to instance
  </code></pre>