zlib直接用于解压缩iphone的zip文件夹 [英] zlib directly for uncompressing a zip folder for iphone
问题描述
是否可以使用iPhone上可用的最小zlib来解压缩文件夹的zip。我不想去开源库,请告诉我实现一段可以解压缩zip文件的代码的难度或可能性。
Is it possible to use the bare minimum zlib available on iPhone to uncompress a zip of a folder. I don't want to go for a open source library, please enlighten me the difficulty or possibility of implementing one piece of code which can uncompress a zip file.
推荐答案
正如JosephH所说,你不能使用ZLib来处理.zip文件。
As JosephH said, you cannot use ZLib to deal with .zip files.
但你可以使用MiniZip库: http://www.winimage.com/zLibDll/minizip.html
But you can use the MiniZip library for that: http://www.winimage.com/zLibDll/minizip.html
如果你不想写你的,那么已经有了一个Objective-C包装器: http://code.google.com/p/ziparchive/
There's already an Objective-C wrapper, if you don't want to write yours: http://code.google.com/p/ziparchive/
FYI - iPhone上的ZLib:
将 libz
添加到主目标的链接框架中,就像另一个框架一样。
Adds libz
to the linked frameworks of your main target, just as another framework.
然后,您可以查看ZLIB教程,了解如何压缩/解压缩文件: http://www.zlib.net/zlib_how.html
Then, you can check the ZLIB tutorials, to learn how to compress/decompress a file: http://www.zlib.net/zlib_how.html
这篇关于zlib直接用于解压缩iphone的zip文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!