gpt4 book ai didi

ios - TWTweetComposeViewController 不显示链接预览

转载 作者:可可西里 更新时间:2023-11-01 04:32:03 24 4
gpt4 key购买 nike

当我在 TWTweetComposeViewController 中添加指向推文的链接时,我看到正确附加的链接:

enter image description here

但与我在 Safari 中这样做时不同的是,该链接不会像 Safari(或 Youtube)那样显示 URL 的预览:

enter image description here

您知道它是隐藏功能还是取决于添加到推文的链接?

谢谢!

最佳答案

这也是我的经验,如果您附加 URL,TWTweetComposeViewController 将不会自动添加预览图像。

我很好奇所以我看了一下private runtime headers for Twitter.framework我发现了一些有趣的方法,包括 - (BOOL)addURL:(id)arg1 withPreviewImage:(id)arg2;。在我的应用程序中使用它,我发现它完全按照预期工作,推文 View 显示了一个链接以及我包含的图像。不幸的是,这并没有太大帮助,因为它是一种私有(private)方法,如果您尝试在 App Store 中使用您的应用程序,几乎肯定会被拒绝。

关于ios - TWTweetComposeViewController 不显示链接预览,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7946083/

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