我有与这篇文章ASIHTTP asynchrounous pdf 下载类似的问题
我将使用 setTemporaryFileDownloadPath 恢复下载:但奇怪的是,当我调用 setDelegate 到 self 并异步启动连接时,缓存不会将其保存到temporaryFileDownloadPath,而是我备注设置委托,缓存将保存到路径.
_conn = [[ASIHTTPRequest alloc] initWithURL:_currentURL];
[_conn setDownloadDestinationPath:_currentFileNameWithPath];
[_conn setTemporaryFileDownloadPath:tempPdfLocation];
[_conn setAllowResumeForFileDownloads:YES];
//[_conn setDelegate:self];
[_conn startAsynchronous];
我发现每当 - (void)request:(ASIHTTPRequest *)request didReceiveData:(NSData *)data: 被调用时,缓存都不会保存。任何的想法?