Skip to content

Instantly share code, notes, and snippets.

@laguiar
Created August 30, 2011 18:05
Show Gist options
  • Save laguiar/1181552 to your computer and use it in GitHub Desktop.
Save laguiar/1181552 to your computer and use it in GitHub Desktop.
How to customize the ShareKit popover entries and remove the "More..." button.
- ShareKit -> Core -> SHK.m
Change in favoriteSharersForType method the NSArray favoriteSharers content:
Ex: favoriteSharers = [NSArray arrayWithObjects:@"SHKTwitter",@"SHKFacebook",@"SHKMail",nil];
- ShareKit -> UI -> SHKActionSheet.m
Remove in actionSheetForType method:
[as addButtonWithTitle:SHKLocalizedString(@"More...")];
Remove in dismissWithClickedButtonIndex method the entire "else if" block:
else if (buttonIndex == sharers.count)
{
SHKShareMenu *shareMenu = [[SHKCustomShareMenu alloc] initWithStyle:UITableViewStyleGrouped];
shareMenu.item = item;
[[SHK currentHelper] showViewController:shareMenu];
[shareMenu release];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment