Created
February 3, 2017 15:57
-
-
Save craigmarvelley/802920da11db4134b8bd3927820adae7 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
NSURL *pathToPdfFile; | |
UIActivityViewController *activityController = [[UIActivityViewController alloc] initWithActivityItems:@[ result ] applicationActivities:nil]; | |
NSMutableArray *excludedActivities = [NSMutableArray array]; | |
NSNumber *emailOutEnabled = [self.userPreferences.featureFlags valueForKeyPath:@"research.share.email"]; | |
if (!emailOutEnabled.boolValue) { | |
[excludedActivities addObject:UIActivityTypeMail]; | |
} | |
activityController.excludedActivityTypes = excludedActivities; | |
[exportController presentViewController:activityController animated:YES completion:nil]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment