3

I am trying to attach a .vcf file to the MFMessageComposeViewController as a share contact feature in my app. I referred this link and it is said that there is no possibility to send a contact info through message composer. I also tried setting the encoded string to the message body as suggested in this link, which also didn't work. I don't know how it is implemented in the default message app as in the below image.

Contacts info in the MessageComposer

Can anyone suggest me how to implement this share contact option as in the default Contacts app of the iPhone? Any timely help is much more appreciated.

Community
  • 1
  • 1
Ananth
  • 815
  • 9
  • 26
  • have you tried this method - (BOOL)addAttachmentData:(NSData *)attachmentData typeIdentifier:(NSString *)uti filename:(NSString *)filename – DogCoffee Sep 14 '13 at 06:39
  • But the above method is available only in the `MFMailComposeViewControler` only na,. I asked for the the same in the `MFMessageComposeViewController` buddy..! – Ananth Sep 16 '13 at 11:56

1 Answers1

1

Adding attachment feature is added in iOS7 with the MFMessageComposeViewController class. The method – addAttachmentData:typeIdentifier:filename: gives the answer where typeIdentifier can be set as kUTTypeVCard.

Ananth
  • 815
  • 9
  • 26