Created
April 23, 2015 02:13
-
-
Save TosinAF/598df417964877be4592 to your computer and use it in GitHub Desktop.
Share activity
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)shareAction | |
{ | |
NSArray *activityItems = @[self.url, self.titleLabel.text]; | |
UIActivityViewController *activityViewController = [[UIActivityViewController alloc] initWithActivityItems:activityItems applicationActivities:nil]; | |
[self presentViewController:activityViewController animated:true completion:nil]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment