Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Share this with iOS native Facebook sharing
- (IBAction)share:(id)sender
{
NSURL *url = [NSURL URLWithString:@"https://itunes.com/apps/apple/pages"];
UIActivityViewController *vc = [[UIActivityViewController alloc] initWithActivityItems:@[url] applicationActivities:nil];
[self presentViewController:vc animated:YES completion:nil];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment