I am uploading a file from an iOS app onto S3 that can get pretty large. (up to 3-5mb) I want to have a way to have a progress bar for the upload for the user to be able to see the progress of the upload. I have looked into multiple classes, but have not seen a solution.
The most popular online is ASIHTTPRequest, which supports asynchronous uploading, but I do not see where it provides a progress for me to display.
Any help would be greatly appreciated. Thanks in advance.
ASIHTTPRequest
provides the state information, but you provide the progress view. It's called UIProgressView
, and it's a subclass of UIView
, which means you can drop it in anywhere there's already a view.
You hook up the request's delegate to your progress view — as data comes in, the delegate tells your progress view to update itself with the current progress of the request.
Read the "Tracking Progress" section of the ASIHTTPRequest
docs for more information.