title: Objective-C Convert NSData to NSString
body: <p>Here are the code I tried to convert NSData to NSString but the program return "Program received signal:SIGABRT".</p>
  
  <pre><code>NSString *string= [NSString stringWithUTF8String:[data bytes]];
  </code></pre>
  
  <p>OR</p>
  
  <pre><code>NSString *string = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
  </code></pre>
  
  <p>Is there any other better way to do it?</p>