0

does anyone know i this is possible by doing something like

[compose addAttachmentData:data typeIdentifier:(NSString *)kUTTypeAudio filename:@"test"];

The resulting message isn't of any playable format so not sure if its possible at all? The data file does play in an audio player so I know thats correct.

Thanks

Jules

Jules
  • 660
  • 8
  • 29

1 Answers1

0

You need to set the filename to include a proper file extension, e.g. @"test.caf", instead of just @"test". See this answer for a similar question: MFMessageComposeViewController iOS7 addAttachmentData:typeIdentifier:filename: not working

Community
  • 1
  • 1
Orlin Georgiev
  • 1,391
  • 16
  • 18