Skip to content

Instantly share code, notes, and snippets.

@aaustin
Last active September 15, 2016 00:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aaustin/42fdcb5227770eee3ed16d193c782a6f to your computer and use it in GitHub Desktop.
Save aaustin/42fdcb5227770eee3ed16d193c782a6f to your computer and use it in GitHub Desktop.
UIViewController *activeViewController = self; // or set the active view controller if doing this in another class
activeViewController.userActivity = [[NSUserActivity alloc] initWithActivityType:[[NSBundle mainBundle] bundleIdentifier]];
activeViewController.userActivity.delegate = self;
... // assign the parameters described in the section above
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment