适用于 iOS 的最佳归档库 [英] Best archiver library for iOS

查看:35
本文介绍了适用于 iOS 的最佳归档库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找要在我的 iOS 应用程序中使用的存档库(zip 或其他格式).什么是最好的图书馆:

I'm looking for an archiver library to use in my iOS app (zip or other formats). What is the best library in terms of:

  1. 将它包含在 iOS 项目中是多么容易
  2. 内存消耗
  3. 解压速度
  4. 它有多稳定

推荐答案

我使用了 Objective Zip它在 iOS4 上运行良好.使用这个库很容易,因为:

I used Objective Zip and it worked quite well on iOS4. Work with this library is easy as this:

ZipFile *zipFile= [[ZipFile alloc] initWithFileName:@"test.zip" mode:ZipFileModeCreate];
ZipWriteStream *stream= [zipFile writeFileInZipWithName:@"abc.txt" compressionLevel:ZipCompressionLevelBest];
[stream writeData:abcData];
[stream finishedWriting];

以类似的方式解压.

我可以推荐它,但我无法提供与其他人的任何比较.您还可以在 wiki 上看到其他一些基于此库的库.希望对你有所帮助.

I can recommend it, but I can not provide any comparison to others. You can see on the wiki also some other libraries, which are based on this one. I hope this will help you a little.

这篇关于适用于 iOS 的最佳归档库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆