ShareKit changes?

前端 未结 6 1577
醉酒成梦
醉酒成梦 2020-12-28 10:42

I haven\'t used ShareKit much, but I want to have only three sharing options: Facebook, Twitter, and Email. ShareKit gives far more options, including a More button. However

6条回答
  •  既然无缘
    2020-12-28 11:18

    you need to make this code changes from SHKActionSheet.m

    + (SHKActionSheet *)actionSheetForType:(SHKShareType)type
    // Add More button
    //[as addButtonWithTitle:SHKLocalizedString(@"More...")];
    
    
    - (void)dismissWithClickedButtonIndex:(NSInteger)buttonIndex animated:(BOOL)animated
    
    // More
    //  else if (buttonIndex == sharers.count)
    //  {
    //      SHKShareMenu *shareMenu = [[SHKCustomShareMenu alloc]   
    //          initWithStyle:UITableViewStyleGrouped];
    //      shareMenu.item = item;
    //      [[SHK currentHelper] showViewController:shareMenu];
    //      [shareMenu release];
    //  }
    

    And you can edit SHKSharers.plist for services you like.

提交回复
热议问题