큰 이미지 나 그 파일을 다운로드 할 때 진행률 표시 줄을 추가하려면 어떻게해야합니까? 여기 내 코드는 다음과 같습니다.이미지를 다운로드 할 때 진행률 표시 줄
NSArray* paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,
NSUserDomainMask, YES);
NSString *docsPath = [paths objectAtIndex:0];
NSString *downloadPath = [[[NSString alloc]initWithFormat:@"http://www.zzz.com/%@.jpg",chartFileName]autorelease];
NSString *savePath = [[[NSString alloc]initWithFormat:@"%@/%@.jpg",docsPath, chartFileName]autorelease];
NSURL *url = [[NSURL alloc]initWithString:downloadPath];
NSData *downloadedChartData = [NSData dataWithContentsOfURL:url];
[url release];
[downloadedChartData writeToFile:savePath atomically:YES];
"[NSData dataWithContentsOfURL :]"에 명시적인 NSURLConnection 호출이 없으므로 URLstring으로 시작하는 전체 다운로드 중 진행 구현에 대한 포인터를 제공 할 수 있습니까? – Bogatyr
또는 준비된 솔루션 http://www.developers-life.com/progress-bar-download-file-on-iphone.html – SAKrisT