Created
January 2, 2014 00:02
-
-
Save aug2uag/8213106 to your computer and use it in GitHub Desktop.
UIActivityViewController
This file contains 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
NSString* textToShare = <# INPUT #>; | |
UIImage* imageToShare = <# INPUT #>; | |
NSArray* thingsToShare = @[textToShare, imageToShare]; | |
UIActivityViewController* activityViewController = [[UIActivityViewController alloc] initWithActivityItems:thingsToShare applicationActivities:nil]; | |
[self presentViewController:activityViewController animated:YES completion:nil]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment