Attach image in Native SMS/MMS Application on iPhone
i want to send an image through native application in iphone.
I have searched a lot on web but cant find anything.
is it possible with iOS?
Please do help...
MFMessageComposeViewController is the only documented API for creating SMS messages programmatically. It does not currently allow MMS but you can file a bug report for the feature request. In the meantime, you can either:
-use MFMailComposeViewController which does allow image attachments via -(void)addAttachmentData:(NSData*)attachment mimeType:(NSString*)mimeType fileName:(NSString*)filename
-or like Aurum mentioned, save the image to the photo library and instruct the user to send it with the native "Messages" app.
If you mean you want to do this programatically - I don't think you can. Your best bet'd be to save the image to the camera roll and tell the user to attach it. Maybe someone more experienced knows a better way of doing things.
If you just want to do it as a normal user opening the messages app, you can. Just click the little blue camera on the left hand side of the text field.
链接地址: http://www.djcxy.com/p/50088.html上一篇: WPF绑定默认模式