下載地址:https://github.com/ZipArchive/ZipArchive
需要引入libz.dylib框架
導(dǎo)入頭文件Main.h
創(chuàng)建壓縮文件
+(BOOL)createZipFileAtPath:(NSString
*)path withFilesAtPaths:(NSArray
*)paths;
+(BOOL)createZipFileAtPath:(NSString
*)path withContentsOfDirectory:(NSString
*)directoryPath;
- 解壓
+(BOOL)unzipFileAtPath:(NSString
*)path toDestination:(NSString
*)destination

壓縮解壓縮.png