简体   繁体   English

iOS开发:我需要做的就是发布一条推文

[英]iOS Development: All I need to do is post a tweet

I've been researching the latest ways to integrate Twitter into my app and it appears the best (most painless) approach is to use the MGTwitterEngine, and the best tutorial I could find to implement this is a 3-part series . 我一直在研究将Twitter集成到我的应用程序中的最新方法,看来最好(最轻松)的方法是使用MGTwitterEngine,而我能找到的最好的教程是一个分为3部分的系列文章 If all I need to do is allow the user to login to their twitter account and post a single tweet that's always the same, is there an easier way to do that than following the tutorial I linked to? 如果我需要做的就是允许用户登录其Twitter帐户并发布一条始终相同的推文,是否有比跟随我所链接的教程更简单的方法呢?

Thanks so much for your wisdom. 非常感谢您的智慧。 If the alternatives aren't much easier, no problem, I'm not so lazy that I can't follow a tutorial, I was just wondering if there's a quicker way that I didn't see. 如果替代方案不是那么容易,没问题,我不是很懒,我不能按照教程学习,我只是想知道是否有一种我看不到的更快的方法。

Create a button that opens a UIWebView when clicked. 创建一个按钮,单击该按钮可打开UIWebView Build the URL using details here: http://twitter.com/about/resources/tweetbutton . 在此处使用详细信息构建URL: http : //twitter.com/about/resources/tweetbutton Simple - about 10 lines of code. 简单-大约10行代码。

I'm a big fan of st3fan's (Stefan Arentz) https://github.com/st3fan/iphone-twitter project. 我是st3fan(Stefan Arentz) https://github.com/st3fan/iphone-twitter项目的忠实粉丝。 It's very easy to integrate and includes whole views that you can just use, easily customizable too. 它非常易于集成,并包含您可以使用的整个视图,也可以轻松自定义。

Plan your Twitter implementation ahead - with an iPhone project you will want to use xAuth authentication which does not require a round trip to the web browser.* You have to first register your app and then request permission for your application to use this method. 提前计划您的Twitter实施-在一个iPhone项目中,您将需要使用xAuth身份验证,而该身份验证不需要往返于Web浏览器。*您必须先注册您的应用程序,然后请求您的应用程序许可以使用此方法。 Check the Twitter developer pages for more details. 查看Twitter开发人员页面以了解更多详细信息。

*or not. *或不。 But I hate leaving the app to post tweets. 但是我讨厌离开应用程序发布推文。

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

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