Iphone ShareKit-Twitter集成

Iphone ShareKit-Twitter集成,iphone,xcode,twitter,sharekit,Iphone,Xcode,Twitter,Sharekit,我在我的应用程序中安装了ShareKit for Twitter支持。我注册了所有的密钥和URL等等。但我的问题是:在我的应用程序中,用户看到的是句子。我希望用户可以在推特上发这句话。我必须用什么方法写。我有: -(IBAction)tweetSentence { NSString* message = [[sprueche objectAtIndex: spruecheCount] stringByAppendingString:@"\n\nhttp://projectkeecks.com

我在我的应用程序中安装了ShareKit for Twitter支持。我注册了所有的密钥和URL等等。但我的问题是:在我的应用程序中,用户看到的是句子。我希望用户可以在推特上发这句话。我必须用什么方法写。我有:

-(IBAction)tweetSentence {

 NSString* message = [[sprueche objectAtIndex: spruecheCount] stringByAppendingString:@"\n\nhttp://projectkeecks.com"] ;

}
- (void)myButtonHandlerAction
{
    // Create the item to share (in this example, a url)
    NSString *someText = @"This is a blurb of text I highlighted from a document.";
    SHKItem *item = [SHKItem text:someText];

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

    // Display the action sheet
    [actionSheet showFromToolbar:navigationController.toolbar];
}
我还需要补充什么

谢谢


Leon

我在getsharekit.com上找到了一个教程 但现在我有:

-(IBAction)tweetSentence {

 NSString* message = [[sprueche objectAtIndex: spruecheCount] stringByAppendingString:@"\n\nhttp://projectkeecks.com"] ;

}
- (void)myButtonHandlerAction
{
    // Create the item to share (in this example, a url)
    NSString *someText = @"This is a blurb of text I highlighted from a document.";
    SHKItem *item = [SHKItem text:someText];

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

    // Display the action sheet
    [actionSheet showFromToolbar:navigationController.toolbar];
}
但我没有导航控制器
如何在interface builder中显示“操作表”部分

而不是
[actionSheet showFromToolbar:navigationController.toolbar]
您可以使用
[actionSheet showInView:self.view]。在这种情况下,您不需要导航控制器