1
저는 zip 파일을 다운로드하고 문서 디렉토리에 저장합니다. ssziparchive을 사용하여 압축을 풉니 다. 하지만 zip 파일에서 데이터를 가져 오지 않습니다. 어떻게 데이터를 가져올 수 있습니다. 그리고 난 내 unzip 파일을 볼 수 없습니다. 문서 디렉토리에만 내가 이것을 얻고있다. 은 zip 파일에서 문서 디렉토리의 데이터를 가져올 수 없습니다.
나는 다음과 같이 디렉토리를 문서화하기 위해 번들에서 해제 zip 파일로
NSString *documentsDirectory = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0];
NSString *fullPath = [documentsDirectory stringByAppendingPathComponent:@"image.zip"];
NSString *zipPath =fullPath;
NSString *destinationPath =[documentsDirectory stringByAppendingPathComponent:@"unZipimage"];
NSLog(@"zip path==%@",zipPath);
NSLog(@"dest path==%@",destinationPath);
//
[SSZipArchive unzipFileAtPath:zipPath toDestination:destinationPath];
내가이 – Sport
그것의 내 프로젝트에 나를 위해 작업을 시도 작동하지, 코드가 약간의 실수가있을 수 있습니다. 코드를 확인하십시오. –
라이브러리 내 내 zip 파일 – Sport