ShareKit更改? [英] ShareKit changes?

查看:126
本文介绍了ShareKit更改?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我没有使用ShareKit,但是我只想分享三个共享选项:Facebook,Twitter和Email。 ShareKit提供了更多选项,包括更多按钮。但是,我不想要更多选项,只是三个。



在ShareCit的 SHKActionSheet.m

  //添加更多按钮
[as addButtonWithTitle:SHKLocalizedString(@More ...)];

解决方案

现在,超级容易,如果您使用 ShareKit 2.0


  1. 编辑SHKSharers.plist只包含您需要的共享者。如果您不想编译未使用的共享文件,请查看细粒度安装


  2. 您可以在配置器中隐藏more ...按钮。新的设置是 - (NSNumber *)showActionSheetMoreButton


  3. 您可以在配置器中禁用收藏夹重新排序。通常最后一次使用的sharer在ShareKit的操作表中位于顶部。新设置是 - (NSNumber *)autoOrderFavoriteSharers


使用这种方式,您不需要更改或添加任何代码到ShareKit。


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, I don't want the More option, just the three.

In SHKActionSheet.m of ShareKit:

// Add More button
[as addButtonWithTitle:SHKLocalizedString(@"More...")];

解决方案

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.

这篇关于ShareKit更改?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆