-2
ActionsViewController *actionsViewController = [AppLibrary createActionsViewController];
actionsViewController.actionDelegate = self;
actionsViewController.supportedActionTypes = @[[[SupportedAction alloc] initWithActionType:ActionTypeEdit mediaTypes:@[kTypePNG]]];

[actionsViewController setWhitelistedSubTypes:@[@"adjust", @"filter", @"healing"]];

if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) {
    self.actionsNavigationController = [[UINavigationController alloc] initWithRootViewController:actionsViewController];
    [self presentViewController:self.actionsNavigationController animated:YES completion:nil];
}
Cœur
  • 37,241
  • 25
  • 195
  • 267
alideny
  • 13
  • 5

1 Answers1

1

just add this in

-(IBAction)go:(id)sender
{
ActionsViewController *actionsViewController = [AppLibrary createActionsViewController];
actionsViewController.actionDelegate = self;
actionsViewController.supportedActionTypes = @[[[SupportedAction alloc] initWithActionType:ActionTypeEdit mediaTypes:@[kTypePNG]]];

[actionsViewController setWhitelistedSubTypes:@[@"adjust", @"filter", @"healing"]];

if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) {
    self.actionsNavigationController = [[UINavigationController alloc] initWithRootViewController:actionsViewController];
    [self presentViewController:self.actionsNavigationController animated:YES completion:nil];
}
}

Please check the following Doc: Apple Doc

Smile
  • 667
  • 1
  • 5
  • 21