Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NSString *textToShare = @"Look at this awesome website for aspiring iOS Developers!";
- NSString *text = @"How to add Facebook and Twitter sharing to an iOS app";
- NSURL *url = [NSURL URLWithString:@"http://roadfiresoftware.com/2014/02/how-to-add-facebook-and-twitter-sharing-to-an-ios-app/"];
- UIImage *image = [UIImage imageNamed:@"roadfire-icon-square-200"];
- UIActivityViewController *controller =
- [[UIActivityViewController alloc]
- initWithActivityItems:@[text, url, image]
- applicationActivities:nil];
- [self presentViewController:controller animated:YES completion:nil];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement