Skip to content

Instantly share code, notes, and snippets.

@glesage
Last active August 29, 2015 14:28
Show Gist options
  • Save glesage/4a718eeada3ff92e74c5 to your computer and use it in GitHub Desktop.
Save glesage/4a718eeada3ff92e74c5 to your computer and use it in GitHub Desktop.
branch providers
UIActivityItemProvider *itemProvider = [Branch getBranchActivityItemWithParams:params
feature:@"invite"
stage:@"logged_in"
tags:@[@"ios"]];
// VS //
AmbassadorProvider *activityItem = [[AmbassadorProvider alloc] initWithPlaceholderItem:@"Free laundry from Starchup!"];
@derrick-branch
Copy link

UIActivityViewController *shareViewController = [[UIActivityViewController alloc] initWithActivityItems:@[itemProvider, activityItem] applicationActivities:nil];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment