Created
February 22, 2014 22:42
-
-
Save mikekavouras/9163501 to your computer and use it in GitHub Desktop.
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
- (void)showActivityController | |
{ | |
NSArray *excludedApps = @[ | |
UIActivityTypeAirDrop, | |
UIActivityTypeCopyToPasteboard, | |
UIActivityTypeAddToReadingList, | |
UIActivityTypePrint, | |
UIActivityTypeSaveToCameraRoll | |
]; | |
UIActivityViewController *activityController = [[UIActivityViewController alloc] initWithActivityItems:@[@"I'm using Cloak to avoid running into annoying friends, co-workers, and maybe even you. Try it out on the App Store at: http://usecloak.com"] applicationActivities:nil]; | |
[activityController setValue:@"Stay away from me. And everybody else." forKey:@"subject"]; | |
activityController.excludedActivityTypes = excludedApps; | |
[self presentViewController:activityController animated:YES completion:nil]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment