如何使用XCode在iOS应用程序的推文中上传视频 [英] How do I upload video in a tweet in an iOS app using XCode

查看:76
本文介绍了如何使用XCode在iOS应用程序的推文中上传视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是iOS开发的新手,需要对我要接管的iOS应用进行更改,以将视频添加到推文中.我当前的应用程序UI允许用户输入推文的文本,但我将对其进行更改,以允许他们选择要与推文一起上传的视频,类似于Twitter应用程序的工作方式.

I am new to iOS development and need to make a change to an iOS app I'm taking over to add video to a tweet. My current app UI allows the user to type in text for a tweet but I would be changing that to allow them to pick a video to upload along with the tweet similar to how the Twitter app works.

我看到Twitter API支持上传视频,但是我找不到关于如何使用XCode和Objective-C实现此目的的好示例.我可以利用任何推荐的方法或工具包来完成此任务吗?

I see the Twitter API supports uploading video but I haven't been able to find any good examples on how to accomplish this using XCode and Objective-C. Any recommended approaches or tool kits I can leverage to accomplish this?

https://dev.twitter.com/rest/public/uploading-media

推荐答案

我不得不推出自己的解决方案.查看我的项目 https://github.com/mtrung/TwitterVideoUpload .

I had to roll my own solution. Check out my project https://github.com/mtrung/TwitterVideoUpload.

  • 重量轻,因为使用了内置的Apple社交框架来保持轻便.无需添加其他框架,例如TwitterKit和Fabric.
  • 支持块上传.
  • 对用户凭证检索的内置支持

这篇关于如何使用XCode在iOS应用程序的推文中上传视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆