Network Programming for IOS development-File compression and decompression, and ios Network Programming
Preface:
The QQ emoticon package uses decompression. the formats of the many emoticon files downloaded from the Internet are not image files, but compressed emoticon packages from multiple images. The following describes how to use the compression and decompression third-party frameworks used in iOS development.
Note:
This third-party framework code folder is SSZipArchive, And the search using cocoapods is also SSZipArchive. However, if you search ZipArchive directly on github and find the most likes, frequently maintained ZipArchive libraries, and then download the code, it is actually the SSZipArchive.
Third-party framework github URL: https://github.com/ZipArchive/ZipArchive
1. How to import a third-party framework:
1-1. If Cocoapods is used, use it directly (if you do not know Cocoapods or do not know cococoapods, please read your own CocoaPods usage (illustrated in images) OS X 10.11 system ):
1-2. If you download the file directly from github and import it manually, you need to add the libz link file:
2. Code display: