2

I'm developing an ios application. As part of my application I need to support upload of a small sized video created by the user (20 mb).

What would be the best way to approach the uploading? Should I handle it with a queue? Are there any built in libraries that support it?

Thanks

vondip
  • 13,809
  • 27
  • 100
  • 156

2 Answers2

1

That depends on the version of iOS you are planning to deploy on. As of iOS 7, the NSURLSession class provide mechanisms to allow you to finish larger file transfers in background and pause them.

Follow the next links for more information:

AFNetworking also provides very easy to use API around NSURLSession and it even supports older iOS versions (not their entire API though).

There is also some information in questions below:

If iOS7 support is enough for you, I would suggest using AFNetworking 2.0 library and following their best practices described in their extensive documentation at CocoaDocs.

If you do not want to use a library, go with Apple's built in class NSURLSession.

Community
  • 1
  • 1
Legoless
  • 10,942
  • 7
  • 48
  • 68
0

There is a library called AFNetworking.AFNetworking Learning how to implement look here Here are some examples

Moonhead
  • 1,570
  • 8
  • 17