I’ve implemented ShareKit in my app. I’m OK with the default way that it works, but I wish to control the services available to the user to select from; to be more specific, I don’t want to deal with all the service embedded by default and just have Facebook, Twitter and Mail.
Where in the ShareKit files do I do these settings (removing all of these neglected services that I don’t want to deal with their APIs and such)?
You would need to edit
SHK.min the ShareKit framework. Change thefavoriteSharersForType:method to only:You can add/remove services from this array as you please.
EDIT
To remove the More… button, locate the
actionSheetForTypemethod inSHKActionSheet.mand remove:[as addButtonWithTitle:SHKLocalizedString(@"More...")];After completing this, you will need to fix the indices. Locate the
dismissWithClickedButtonIndex:delegate method and delete the entireelse if (buttonIndex == sharers.count)block.