title: How do I send audio file send via iMessage ios 8
body: <p>As we know with the launch of ios 8 the apple allow custom Keyboard extension.In keyboard extension we can send images,gif etc in SMS by using Copy image to clipboard.code </p>
  
  <pre><code> UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];
   NSData *data= UIImagePNGRepresentation([UIImage imageNamed:@"so_close_disappointed_meme.png"]);
   [pasteboard setData:data forPasteboardType:@"public.png"];
  </code></pre>
  
  <p>Now i am trying to send audio file in iMessage like this feature <a href="https://www.apple.com/ios/whats-new/messages/" rel="nofollow">reference</a>.don't know apple will allow us to send audio in iMessage?.so for i tried above approach but it did not show any paste option for audio in SMS window.</p>
  
  <pre><code> UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];
   NSString *path = [[NSBundle mainBundle] pathForResource:@"tune"ofType:@"mp3"];
   NSURL *url = [[NSURL alloc] initWithString:path];
   NSData *data = [NSData dataWithContentsOfURL:url];
   [pasteboard setData:data forPasteboardType:@"public.mp3"];
  </code></pre>
  
  <p>Any one can suggest me how do we send audio file by using custom keyboard extension.is it possible?</p>