我想从服务器下载大尺寸的zip文件,为此我正在使用ASIHTTPRequest.I已成功下载文件但我想显示进度条。我已经实现了它就像ASIHTTPRequest的例子但我的进度条是没有显示进展。我的代码在
之下 [networkQueue reset];
networkQueue setRequestDidFinishSelector:@selector(imageFetchComplete:)];
[networkQueue setRequestDidFailSelector:@selector(imageFetchFailed:)];
[networkQueue setDelegate:self];
request = [ASIHTTPRequest requestWithURL:[NSURL URLWithString:fullURL]];
fullPathTemp = [NSString stringWithFormat:@"%@/temp.zip", self.documentsDir];
[request setDownloadProgressDelegate:progressIndicator];
[request setDownloadDestinationPath:fullPathTemp];
[request setUserInfo:[NSDictionary dictionaryWithObject:@"request1" forKey:@"name"]];
[request setShouldContinueWhenAppEntersBackground:YES];
[networkQueue addOperation:request];
[networkQueue go];
先谢谢。
答案 0 :(得分:-1)
可能是你的progressIndicator没有设置委托。