赞
踩
SSZipArchive功能:
使用前:
- // 解压
- NSString *zipPath = @"被解压的文件路径";
- NSString *destinationPath = @"解压到的目录";
- [SSZipArchive unzipFileAtPath:zipPath toDestination:destinationPath];
-
- // 压缩
- NSString *zippedPath = @"压缩文件路径";
- NSArray *inputPaths = [NSArray arrayWithObjects:
- [[NSBundle mainBundle] pathForResource:@"photo1" ofType:@"jpg"],
- [[NSBundle mainBundle] pathForResource:@"photo2" ofType:@"jpg"]
- nil];
- [SSZipArchive createZipFileAtPath:zippedPath withFilesAtPaths:inputPaths];
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。