title: Extracting file name from NSData
body: <p>I am using bluetooth to send files along to other devices. The content sent is NSData:</p>
  
  <pre><code>NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
  
  NSString *documentsDirectoryPath = [paths objectAtIndex:0];
  NSString *myFilePath = [documentsDirectoryPath stringByAppendingPathComponent: [NSString stringWithFormat:@"%@.ext", button.titleLabel.text]];
  
  NSData *Recording = [NSData dataWithContentsOfFile:myFilePath];
  </code></pre>
  
  <p>The file is an image. The file is received and views fine, but I would like to save it to the documents directory with the same name it had before, which is the button.titleLabel.text. When you send a file, it always has a name. How can I get it?</p>