Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
NSURL *pathToPdfFile;
UIActivityViewController *activityController = [[UIActivityViewController alloc] initWithActivityItems:@[ result ] applicationActivities:nil];
NSMutableArray *excludedActivities = [NSMutableArray array];
NSNumber *emailOutEnabled = [self.userPreferences.featureFlags valueForKeyPath:@""];
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
You can’t perform that action at this time.