01.
02.
NSString
*zipPath = @
"path_to_your_zip_file"
;
03.
NSString
*destinationPath = @
"path_to_the_folder_where_you_want_it_unzipped"
;
04.
[SSZipArchive unzipFileAtPath:zipPath toDestination:destinationPath];
05.
06.
07.
NSString
*zippedPath = @
"path_where_you_want_the_file_created"
;
08.
NSArray
*inputPaths = [
NSArray
arrayWithObjects:
09.
[[
NSBundle
mainBundle] pathForResource:@
"photo1"
ofType:@
"jpg"
],
10.
[[
NSBundle
mainBundle] pathForResource:@
"photo2"
ofType:@
"jpg"
]
11.
nil
];
12.
[SSZipArchive createZipFileAtPath:zippedPath withFilesAtPaths:inputPaths];