Skip to content

Instantly share code, notes, and snippets.

@jdewind
Created August 25, 2010 20:47
Show Gist options
  • Save jdewind/550260 to your computer and use it in GitHub Desktop.
Save jdewind/550260 to your computer and use it in GitHub Desktop.
SHKItem *item = [[[SHKItem alloc] init] autorelease];
item.shareType = SHKShareTypeText;
item.contextBlock = ^(NSString *selectedSharer, id item) {
if ([selectedSharer isEqualToString:@"SHKTwitter"]) {
[item setShareType:SHKShareTypeURL];
[item setURL:[NSURL URLWithString:@"http://www.google.com"]];
[item setTitle:@"Tweeting this! #HashTagsAreCoolForKids"];
} else {
[item setMessage:@"This is for everything else http://www.google.com"];
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment