在 ios4 和 ios 5 中是否有用于 Twitter 共享的单个库

发布于 2025-01-01 18:11:31 字数 295 浏览 3 评论 0原文

我需要在 Twitter 上分享从我的服务器获取的一个视频网址。

我的应用程序必须兼容 ios 4.0 和 ios 5.0。 我知道有适用于 ios 4.0 的 twitter+oauth 库和适用于 ios 5.0 的 twitter 内置库。我的功能是 Twitter 库只需询问一次用户凭据即可进行 Twitter 身份验证,并且需要在后台发布该视频网址,而无需征求用户许可。

从第二次开始,视频必须在后台发布。

据我所知,我们需要使用不同的库,但是有没有任何解决方案可以用一个库来实现我的任务。

请帮我。

I need to share one video url getting from my server in twitter.

And my app must be compatible for both ios 4.0 and ios 5.0.
I know that there is twitter+oauth library for ios 4.0 and twitter inbuilt library for ios 5.0. And my functionality is twitter library need to ask user credentials only once for twitter authentication and need to post that video url in background with out asking user permission.

From the second time onwards video must posted in background.

As per my knowledge we have different libraries we need to use but is there any solution that do implemant my task with one library.

Please help me.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

入怼 2025-01-08 18:11:31

要获得完美的实现,请查看 DETweetComposeViewController

它将为您提供一个看起来与 iOS5 用户现在越来越习惯的几乎相同的 UI。最重要的是,它可以在 iOS4 和 iOS5 上完美运行。

For a beautiful implementation, check out DETweetComposeViewController.

It will provide you with a UI that looks almost identical to what iOS5 users now are growing accustomed to. The great point is, it works on iOS4 and iOS5 flawlessly.

无法言说的痛 2025-01-08 18:11:31

GetShareKit 是由 Nate Weiner 创建的基本库,现已过时。如果你检查它的 GitHub 源,最后一次提交是在 2010 年的某个时候。版本有 bug,有大约 20 多个编译警告。它使用旧版本的 Facebook 和 Twitter 共享机制,这些机制现已弃用,而且也存在缺陷。例如,单击 Twitter 的“共享”不会关闭共享对话框。

因此,一群开发人员分叉了原始库,现在维护所谓的 ShareKit 2.0 SDK。如果您查看 wiki,您会发现所有新服务(例如 Foursquare、LinkedIn、InstaPaper、EverNote)都已添加到此新版本中。快乐编码!

GetShareKit was a basic library created by Nate Weiner that's now outdated. If you check it's GitHub source, the last commit was sometime in 2010. This version is buggy and has about 20+ compile warnings. this uses an older version of the Facebook and Twitter sharing mechanisms that are now deprecated and also, buggy. Clicking Twitter's "Share", for eg, won't dismiss the sharing dialog.

So, a bunch of developers forked off the original library and now maintain what's called ShareKit 2.0 SDK. If you check the wiki, you'll learn that all new services like Foursquare, LinkedIn, InstaPaper, EverNote have been added to this new version. Happy Coding!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文