【发布时间】:2012-08-30 05:01:11
【问题描述】:
我在使用分享包功能时遇到了问题。
我有一个按钮及其 IBAction,如下所示。
但问题是当我点击按钮时,它会显示一个带有 Facebook、Twitter 和 Pocket 的 ActionSheet,我选择 Facebook,通过身份验证,然后它会将我重定向到 ShareKit 演示应用程序!
- (IBAction)moreSharing:(id)sender {
{
// Create the item to share (in this example, a url)
NSURL *url = [NSURL URLWithString:@"http://www.mywebsite.com"];
SHKItem *item = [SHKItem URL:url title:@"Welcome to mywebsite"];
// Get the ShareKit action sheet
SHKActionSheet *actionSheet = [SHKActionSheet actionSheetForItem:item];
// Display the action sheet
[actionSheet showFromToolbar:navigationController.toolbar];
}
我已经检查了我的 Xcode 项目解决方案文件,并且已经移除并删除了 Examples 文件夹。我不知道演示应用程序是从哪里来的。
有什么想法吗?
【问题讨论】:
标签: objective-c xcode sharekit