Iphone ShareKit SHKActionSheet发行

Iphone ShareKit SHKActionSheet发行,iphone,objective-c,ios,sharekit,Iphone,Objective C,Ios,Sharekit,我不想在我的应用程序中使用Sharekit,以下是代码: NSURL *url = [NSURL URLWithString:@"http://www.mysite.com"]; SHKItem *item = [SHKItem URL:url title:@"ShareKit"]; SHKActionSheet *actionSheet = [SHKActionSheet actionSheetForItem:item]; [SHK setRootViewController:s

我不想在我的应用程序中使用Sharekit,以下是代码:

 NSURL *url = [NSURL URLWithString:@"http://www.mysite.com"];
    SHKItem *item = [SHKItem URL:url title:@"ShareKit"];


SHKActionSheet *actionSheet = [SHKActionSheet actionSheetForItem:item];
[SHK setRootViewController:self.navigationController];

[actionSheet showInView:[self view]];
[actionSheet release];
但我的应用程序一直在崩溃

SHKActionSheet *actionSheet = [SHKActionSheet actionSheetForItem:item];

为什么??谢谢你的帮助

请从代码中删除此行,然后重试。[SHK setRootViewController:self.navigationController];你能解释更多吗。。。!!!你正在使用导航控制器,甚至删除该行都不起作用,非常确定错误在这里SHKActionSheet*actionSheet=[SHKActionSheet actionSheetForItem:item];你有没有找到问题的原因?是的,这是一个愚蠢的问题:要使用sharekit,你必须登录facebook开发者程序