ShareKit changes?

前端 未结 6 1575
醉酒成梦
醉酒成梦 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-28 11:06

    It is super easy now, if you use ShareKit 2.0.

    1. edit SHKSharers.plist to include only sharers you need. In case you do not want to compile unused sharers files, check granular install.

    2. You can hide "more..." button in configurator. The new setting is - (NSNumber*)showActionSheetMoreButton

    3. You can disable favourites reordering in configurator. Normally last used sharer is on the top in ShareKit's action sheet. The new setting is - (NSNumber*)autoOrderFavoriteSharers

    Using this way you do not need to change or add any code to ShareKit.

提交回复
热议问题