Suppose you want to share a URL with someone. You can do it like this using the UIActivityViewController:
// Build a collection of activity items to share, in this case a url NSArray *activityItems = @[[NSURL URLWithString:link]]; // Build a collection of custom activities (if you have any) NSMutableArray *customActivities = [[NSMutableArray alloc] init]; UIActivityViewController *activityController = [[UIActivityViewController alloc] initWithActivityItems:activityItems applicationActivities:customActivities]; [self presentViewController:activityController animated:YES completion:nil];
It will also automatically give you access to other sharing features, unless you disable them through the customActivities collection.
https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIActivityViewController_Class/Reference/Reference.html
source share