Iphone 如何知道有多少数据上传到web服务器?

Iphone 如何知道有多少数据上传到web服务器?,iphone,objective-c,ipad,Iphone,Objective C,Ipad,如何计算上传到web服务器的数据量 对于图像和字符串值,上载到web服务。要计算其已上载的数据量 因此,我可以在iOS=5.0 没有可用的文档 OT:你应该接受更多的问题我不了解接受更多的问题?查看你之前的所有问题并接受最准确的答案 - (void)connection:(NSURLConnection *)connection didSendBodyData:(NSInteger)bytesWritten totalBytesWritten:(NSInteger)totalBytesWritt

如何计算上传到web服务器的数据量

对于图像和字符串值,上载到web服务。要计算其已上载的数据量

因此,我可以在iOS<5.0上的
UIProgressView

1)中,在您的学员中实现以下方法:

作为请求的主体(消息数据)发送(例如在http POST请求中)。(在iOS 3.0至iOS 4.3中提供。)

2) 在iOS中>=5.0

没有可用的文档


OT:你应该接受更多的问题我不了解接受更多的问题?查看你之前的所有问题并接受最准确的答案
- (void)connection:(NSURLConnection *)connection didSendBodyData:(NSInteger)bytesWritten totalBytesWritten:(NSInteger)totalBytesWritten totalBytesExpectedToWrite:(NSInteger)totalBytesExpectedToWrite
[NSURLConnectionDataDelegate connection:didSendBodyData:totalBytesWritten:totalBytesExpectedToWrite:]