gpt4 book ai didi

objective-c - Sharekit 未填充 Facebook 文本框

转载 作者:行者123 更新时间:2023-11-29 04:54:38 24 4
gpt4 key购买 nike

这是我使用的代码。我可以看到弹出窗口,但没有看到 Facebook 弹出窗口中预先填充的文本。

有什么建议吗?

- (IBAction) shareViaFacebook
{

[self prepareToShare];

// create the item to share
NSString *share = [NSString stringWithFormat:@"I'm tracking %@ in some stuff, check it out! http://somewebsite.com/g/%d @TEST",
self.game.name,
[self.game.serverId intValue]];

SHKItem *item = [SHKItem text:share];

// share the item
[SHKFacebook shareItem:item];
}

在相同的年龄,以下 Twitter 代码运行得很好。这就是所有内容都已预先填充

- (IBAction) shareViaTwitter
{
[self prepareToShare];

// create the item to share
NSString *share = [NSString stringWithFormat:@"I'm tracking %@ in some stuff, check it out! http://somewebsite.com/g/%d @TEST",
self.game.name,
[self.game.serverId intValue]];

SHKItem *item = [SHKItem text:share];

// share the item
[SHKTwitter shareItem:item];
}

最佳答案

这是我的项目中使用 ShareKit 的示例:

NSString *finalPostedString = [[NSString alloc] initWithFormat:@"Check out this"];
SHKItem *item1= [SHKItem text:finalPostedString];
SHKActionSheet *actionSheet = [SHKActionSheet actionSheetForItem:item1];
[actionSheet showInView:self];

尝试一下,希望有帮助。

编辑:或者更具体地说,查看此线程,它也应该回答您的问题: iPhone/iOS - How to use "ShareKit" to post only to Facebook or only to Twitter

关于objective-c - Sharekit 未填充 Facebook 文本框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8237518/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com