MMS
as in Multimedia Messaging Service is not available for a developer in iOS.
Only the messages.app can send MMS
, you can't access any data from the messages.app nor can you send an MMS
.
The iOS SDK provides Message UI Framework which allows you to send Email and Text messages. But the text messages are restricted to SMS
only.
Update: iOS 7 now supports attachment.
- (void)sendAudioFile:(NSURL)audioFilePath {
if ([MFMessageComposeViewController canSendAttachments] &&
[MFMessageComposeViewController canSendText] &&
[MFMessageComposeViewController isSupportedAttachmentUTI:@"com.apple.coreaudio-format"]) //.caf files
{
NSLog(@"can send");
MFMessageComposeViewController *message = [[MFMessageComposeViewController alloc] init];
[message addAttachmentURL:audioFilePath withAlternateFilename:nil]; //.caf file
message.messageComposeDelegate = self;
[self presentViewController:message animated:YES completion:nil];
}
else {
NSLog(@"cannot send");
}
}