小编use*_*470的帖子

在facebook上与sharekit共享多个项目

我知道如何分享孤独的形象:

// Create a UIImage.
UIImage *image = [UIImage imageNamed:@"ShareKit.jpg"];

// Wrap the UIImage within the SHKItem class
SHKItem *item = [SHKItem image:image title:@"This image was sent with ShareKit!"];

// Create a ShareKit ActionSheet and Assign the Sheet an SHKItem
SHKActionSheet *actionSheet = [SHKActionSheet actionSheetForItem:item];

// Display the ActionSheet in the current UIView
[actionSheet showInView:self.view];
Run Code Online (Sandbox Code Playgroud)

以及如何分享孤独的链接:

// Create an NSURL. This could come from anywhere in your app.
NSURL *url = [NSURL URLWithString:@"http://mobile.tutsplus.com"];

// Wrap the URL within the SHKItem …
Run Code Online (Sandbox Code Playgroud)

iphone facebook ios sharekit

6
推荐指数
1
解决办法
1185
查看次数

标签 统计

facebook ×1

ios ×1

iphone ×1

sharekit ×1