开发者

In share kit is there any way to share multiple items like image, text, url at a time

I want开发者_Go百科 share an image, text, url at a time and i am using share kit. But here it is sharing only one item at a time. is there any way to share multiple items like image, text, url at a time.

Plz help me out. Thanks.


Looking at the documentation here: http://getsharekit.com/docs/

I noticed that it appears as though you can only share one item at a time, which is why they put each type of sharing under a different heading and there is no combination heading.

In share kit is there any way to share multiple items like image, text, url at a time

Why not just create a custom method that implements all these various callbacks into one? Such as creating an array of items and sharing them all at once.

- (void)myButtonHandlerAction
{
    // Create an array of items here url, date, etc.
    NSURL *url = [NSURL URLWithString:@"http://getsharekit.com"];
    SHKItem *item = [SHKItem URL:url title:@"ShareKit is Awesome!"];

    // Get the ShareKit action sheet
    SHKActionSheet *actionSheet = [SHKActionSheet actionSheetForItem:item];

    / Display the action sheet
    [actionSheet showFromToolbar:navigationController.toolbar];
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜