iphoneobjective-ccocoa-touchsharekit

How to customize ShareKit actionsheet?


I am using ShareKit (www.getsharekit.com) to share my URL's to Twitter and Facebook. I want to be able to remove all of the additional social network it points to, but am not sure where to edit?


Solution

  • From ShareKit/Core/SHK.m:

    [SHK setFavorites: (NSArray *)favs forType:(SHKShareType)type]
    
    + (void)setFavorites:(NSArray *)favs forType:(SHKShareType)type
    {
        [[NSUserDefaults standardUserDefaults] setObject:favs forKey:[NSString stringWithFormat:@"%@%i", SHK_FAVS_PREFIX_KEY, type]];
    }
    

    favs is like :

    [NSArray arrayWithObjects:@"SHKTwitter",@"SHKFacebook",@"SHKReadItLater",nil]
    

    type is SHKShareType:

    typedef enum 
    {
        SHKShareTypeUndefined,
        SHKShareTypeURL,
        SHKShareTypeText,
        SHKShareTypeImage,
        SHKShareTypeFile
    } SHKShareType;