我正在使用 MKNetworkKit 在 MKNetworkEngine 子类中使用以下代码下载文件:
- (MKNetworkOperation *)downloadFileFromURL:(NSString *)urlString toFile:(NSString *)filePathString
{
MKNetworkOperation *op = [self operationWithURLString:urlString params:nil httpMethod:@"GET"];
[op addDownloadStream:[NSOutputStream outputStreamToFileAtPath:filePathString append:YES]];
[self enqueueOperation:op];
return op;
}
关于如何显示下载文件的总大小或下载速率的任何提示?