extract zlib file in iOS?
问题 When downloading data from a server thats compressed using zlib, I was wondering what steps are needed to take to uncompress and save to core data any help would be greatly appreciated 回答1: Use something like ASIHTTP to retrieve the file off the network. That can handle gzip which is likely what the data coming off the network is compressed with. If you'd prefer to roll your own, take a look at this zlib category on NSData: Has worked well for me in the past and likely does what you'll need.