开发者

Amazon S3 Upload via iOS app w/ percent complete

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.

Th开发者_JAVA百科e 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜