more flexible sample apps

This commit is contained in:
Antoine Cœur
2017-10-10 16:42:00 +08:00
parent 308b7c9849
commit 2886108b12
2 changed files with 17 additions and 6 deletions
@@ -68,9 +68,14 @@
NSString *password = _passwordField.text;
BOOL success = [SSZipArchive unzipFileAtPath:_zipPath
toDestination:unzipPath
preserveAttributes:YES
overwrite:YES
nestedZipLevel:0
password:password.length > 0 ? password : nil
error:nil];
error:nil
delegate:nil
progressHandler:nil
completionHandler:nil];
if (success) {
NSLog(@"Success unzip");
} else {