iphone - export and import app data via email -
i have configured app able import , export app data via email in app. in info-plist
have set public.mime-type
@"application/quiz2"
, identifier @"com.capturenow. quiz2.qmf"
can import files ending in .qmf
. currently, if email attachment ending in .qmf
automatically opens app. problem how export (email) nsdata file app , must have file name ending in .qmf
far i've got this:
mfmailcomposeviewcontroller *picker = [[mfmailcomposeviewcontroller alloc]init]; picker.mailcomposedelegate =self; // how attach instanace of nsdata file name ends .qmf [picker setsubject:@"see qmf file attached"]; [picker setmessagebody:@"hello there" ishtml:no]; [picker addattachmentdata:mynsdateobject mimetype:@"application/quiz2" filename:@"???"];
is filename path of nsdataobject i'm trying attach ? if so, append path .qmf
??
Comments
Post a Comment