简体   繁体   English

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

[英]is there any single library for twitter sharing in ios4 and ios 5

I need to share one video url getting from my server in twitter. 我需要分享从Twitter服务器中获取的一个视频URL。

And my app must be compatible for both ios 4.0 and ios 5.0. 而且我的应用程序必须与ios 4.0和ios 5.0兼容。 I know that there is twitter+oauth library for ios 4.0 and twitter inbuilt library for ios 5.0. 我知道有适用于ios 4.0的twitter + oauth库和适用于ios 5.0的twitter内置库。 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. 我的功能是twitter库只需要询问一次用户凭据即可进行twitter身份验证,并且需要在不要求用户许可的情况下在后台发布该视频URL。

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. 请帮我。

For a beautiful implementation, check out DETweetComposeViewController . 要实现漂亮的实现,请查看DETweetComposeViewController

It will provide you with a UI that looks almost identical to what iOS5 users now are growing accustomed to. 它将为您提供一个UI,其外观几乎与iOS5用户现在已习惯的UI相同。 The great point is, it works on iOS4 and iOS5 flawlessly. 最重要的是,它可以完美地在iOS4和iOS5上运行。

GetShareKit was a basic library created by Nate Weiner that's now outdated. GetShareKit是Nate Weiner创建的基本库,现在已经过时了。 If you check it's GitHub source, the last commit was sometime in 2010. This version is buggy and has about 20+ compile warnings. 如果您查看它的GitHub来源,则最后一次提交是在2010年的某个时候。此版本有错误,并且有大约20多个编译警告。 this uses an older version of the Facebook and Twitter sharing mechanisms that are now deprecated and also, buggy. 它使用了较旧版本的Facebook和Twitter共享机制,这些机制现已弃用,并且存在许多问题。 Clicking Twitter's "Share", for eg, won't dismiss the sharing dialog. 例如,单击Twitter的“共享”将不会关闭共享对话框。

So, a bunch of developers forked off the original library and now maintain what's called ShareKit 2.0 SDK . 因此,许多开发人员分叉了原始库,现在维护了所谓的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. 如果您查看Wiki,您将了解到所有新服务(例如Foursquare,LinkedIn,InstaPaper,EverNote)均已添加到此新版本中。 Happy Coding! 编码愉快!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM