有压缩NSData的实用方法吗?

问题描述:

我没有看过关于这个主题的任何文档,但这并不意味着它不存在。

I haven't seen any documentation on the topic, but that doesn't mean it doesn't exist.

是的,使用zlib压缩数据。

Yes, compress the data with zlib.

@Brad Larson发布于此:点击这里并添加了代码。

@Brad Larson posted on this: see here and added the code as well.

有一个 CocoaPod 使用flyingdolphinstudio的 Objective-Zip

There is a CocoaPod which uses Objective-Zip by flyingdolphinstudio.