ideashower/ShareKit

SMS with Image Attachment

Opened this issue · 1 comments

Is there a way to allow an image to be attached to an SMS message. I tried doing:

if (item.image){

    CGFloat jpgQuality = self.item.mailJPGQuality;
    [composeView addAttachmentData:UIImageJPEGRepresentation(item.image, jpgQuality) mimeType:@"image/jpeg" fileName:@"Image.jpg"];
}

but I got this message:

-[MFMessageComposeViewController addAttachmentData:mimeType:fileName:]: unrecognized selector sent to instance 0x28bbf0

Have I done something wrong or is there something else to do to send the image attachments?

Thanks in advance
Diggerbyte

I was told that it was impossible to send an image via SMS because Apple will not allow it.