gpt4 book ai didi

objective-c - objective-c : How to know the progress of unzipping in using ZipArchive

转载 作者:行者123 更新时间:2023-12-03 16:57:55 25 4
gpt4 key购买 nike

我使用 ZipArchive 在 objective-c 中解压缩我的文件。有没有办法知道开始解压缩时的进度(例如完成的百分比等)。或者我必须创建一个委托(delegate)来自己检索进度?谢谢!!

最佳答案

ZipArchive 无法做到这一点。 SSZipArchive是否在委托(delegate)方法上实现了此功能:

- (void)zipArchiveDidUnzipFileAtIndex:(NSInteger)fileIndex totalFiles:(NSInteger)totalFiles archivePath:(NSString *)archivePath fileInfo:(unz_file_info)fileInfo;

关于objective-c - objective-c : How to know the progress of unzipping in using ZipArchive,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16514774/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com