문제

I use ZipArchive to unzip my file in objective c. Is there a way of knowing the progress when it starts to unzip (like the percentage done etc.). Or I have to create a delegate to retrieve the progress by myself? Thanks !!

도움이 되었습니까?

해결책

There's no way of doing that with ZipArchive. SSZipArchive has this feature implemented on a delegate method:

- (void)zipArchiveDidUnzipFileAtIndex:(NSInteger)fileIndex totalFiles:(NSInteger)totalFiles archivePath:(NSString *)archivePath fileInfo:(unz_file_info)fileInfo;
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top