Reputation: 1753
I want to put sharing feature in my application so that i can share file created in my app to app on others mobile. Please if anybody has any idea or code let me know....:-)
Upvotes: 0
Views: 113
Reputation: 73588
Some of the ways I can think of -
Happy coding...
Upvotes: 2
Reputation: 5765
You can compose a new email using MFMailComposeViewController
and attach the file.
MFMailComposeViewController* controller = [[MFMailComposeViewController alloc] init];
controller.mailComposeDelegate = self;
[controller addAttachmentData:[NSData dataWithContentsOfFile:path] mimeType:mimeType fileName:[path lastPathComponent]]; //path is the path to your file
[self presentModalViewController:controller animated:YES];
[controller release];
For iOS 5.0 or later, you could use iCloud.
HTH,
Akshay
Upvotes: 0