【发布时间】:2012-02-22 20:49:30
【问题描述】:
我正在尝试在尝试上传和下载文件时做一些进度指示。
一直在阅读,看来这是我需要使用的方法。
- (void)connection:(NSURLConnection *)connection didSendBodyData:(NSInteger)bytesWritten totalBytesWritten:(NSInteger)totalBytesWritten totalBytesExpectedToWrite:(NSInteger)totalBytesExpectedToWrite
我想详细了解该函数的工作原理(即何时调用等),但似乎找不到参考文档。我访问了这个 URL,但它没有说明该特定功能。
我在哪里可以了解更多信息?
谢谢你,
三通
【问题讨论】:
-
我认为这个答案可能会对您有所帮助:stackoverflow.com/questions/7803472/…
-
哎呀,10 分钟写一个答案,你已经链接了一个更好的答案。
标签: objective-c nsurlconnection nsurlconnectiondelegate