gpt4 book ai didi

ios - SLComposeViewController setInitialText 在 iOS 11 的 Twitter 上不起作用

转载 作者:行者123 更新时间:2023-11-28 20:59:58 28 4
gpt4 key购买 nike

我正在创建 SLServiceTypeTwitter 类型的 SLComposeViewController 并向其添加 urltext .但是,文本未显示,仅显示 url

有人知道为什么 SLComposeViewController 的 setInitialTextiOS 11 中的 Twitter 上不起作用吗?

这是我的代码片段:

SLComposeViewController *twPostSheet = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter];
[twPostSheet setInitialText:copy];
[twPostSheet addURL:[NSURL URLWithString:url]];

UIViewController *controller = RCTPresentedViewController();
twPostSheet.completionHandler = ^(SLComposeViewControllerResult result) {
// Shared with success
};
[controller presentViewController:twPostSheet animated:YES completion:nil];

最佳答案

此行为是有意的。你应该使用 Twitter iOS kit .有了它,您可以分享带有文本、URL、照片和视频的推文。 Facebook 分享也是如此。

关于ios - SLComposeViewController setInitialText 在 iOS 11 的 Twitter 上不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49816839/

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