0
我通過ASIHTTP請求下載音頻文件。當我並行下載三個或更少數量的文件時,其工作正常,但是當我嘗試以並行方式下載更多第四個文件時,它會在項目中的所有tableView上顯示活動指示符,並且不顯示錶數據? 這裏是我的代碼通過ASIHTTP請求並行下載文件的最大數量
UIProgressView *_progressBar = [[UIProgressView alloc] init];
ASIHTTPRequest *request;
request = [ASIHTTPRequest requestWithURL:[NSURL URLWithString:trimmedString]];
[request setDelegate:self];
[request setDownloadDestinationPath:filePath];
[request setDownloadProgressDelegate:_progressBar];
[request setShowAccurateProgress:YES];
[request setShouldContinueWhenAppEntersBackground:YES];
[request setDidFinishSelector:@selector(downloadedSuccessfully:)];
[request setDidFailSelector:@selector(downloadedFailure:)];
[request startAsynchronous];
我沒有那麼在iPhone開發經驗,所以隨時提供幫助。 在此先感謝。
給你的代碼.. – Shubhank 2012-03-08 13:28:31
請檢查。 – 2012-03-08 13:34:38