wanghuaijun
// 解压
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];

SSZipArchive使用详解

http://blog.csdn.net/kqygww/article/details/24851877

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-11-22
  • 2022-02-07
  • 2021-12-06
  • 2021-11-30
  • 2022-02-10
  • 2021-11-22
猜你喜欢
  • 2021-06-01
  • 2022-01-26
  • 2021-11-30
  • 2022-01-12
相关资源
相似解决方案