Last active
September 15, 2016 00:33
-
-
Save aaustin/42fdcb5227770eee3ed16d193c782a6f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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