Yes. It takes a bit of work, but it can be done as follows:
in SHK.m find this method
+ (NSArray *)favoriteSharersForType:(SHKShareType)type
and change
switch (type) { case SHKShareTypeURL: favoriteSharers = [NSArray arrayWithObjects:@"SHKTwitter",@"SHKFacebook",@"SHKReadItLater",nil]; break; case SHKShareTypeImage: favoriteSharers = [NSArray arrayWithObjects:@"SHKTwitter",@"SHKFacebook",@"SHKReadItLater",nil]; break; case SHKShareTypeText: favoriteSharers = [NSArray arrayWithObjects:@"SHKTwitter",@"SHKFacebook",@"SHKReadItLater",nil]; break; case SHKShareTypeFile: favoriteSharers = [NSArray arrayWithObjects:@"SHKTwitter",@"SHKFacebook",@"SHKReadItLater",nil]; break;
for each instance of the switch statement
favoriteSharers = [NSArray arrayWithObjects:@"SHKFacebook", nil];
or any other parameters you want to support (i.e. if you want twitter and facebook to add @"SHKTwitter" to the array)
which will eliminate the other parameters, but the action sheet that displays the parameters does not reflect the change, and it will still provide more options that also need to be disabled.
To do this, go to SHKActionSheet.m
In this method, you can change the title from "Share" to something more specific, i.e. "Share with Facebook and Twitter." To do this, go to the next method and make the indicated change.
+ (SHKActionSheet *)actionSheetForType:(SHKShareType)type
change
SHKActionSheet *as = [[SHKActionSheet alloc] initWithTitle:SHKLocalizedString(@"PUT YOUR NEW TITLE HERE") delegate:self cancelButtonTitle:nil destructiveButtonTitle:nil otherButtonTitles:nil]; as.item = [[SHKItem alloc] init]; as.item.shareType = type;
then in the same method delete this line:
The reason we need to remove this is because we previously deleted more buttons, and now we need to make sure that the code does not confuse any other button with the button anymore. The more buttons you had to remove, because it was discovered options for using other exchange methods that we do not want to use. If we do not delete it, the user will still be able to access the disabled share method.
Hope this helps.