码迷,mamicode.com
首页 > 其他好文 > 详细

源码0602-08-掌握-解压缩

时间:2017-03-23 16:42:38      阅读:172      评论:0      收藏:0      [点我收藏+]

标签:rect   director   ipa   file   des   array   creat   压缩   dir   

 

 

//
//  ViewController.m
//  08-掌握-解压缩

#import "ViewController.h"
#import "Main.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [Main unzipFileAtPath:@"/Users/xiaomage/Desktop/TestAbc.zip" toDestination:@"/Users/xiaomage/Desktop"];
}

- (void)createZipFile2
{
    [Main createZipFileAtPath:@"/Users/xiaomage/Desktop/TestAbc.zip" withContentsOfDirectory:@"/Users/xiaomage/Desktop/Test"];
}

- (void)createZipFile
{
    NSArray *paths = @[
                       @"/Users/xiaomage/Desktop/Test/Snip20150713_276.png",
                       @"/Users/xiaomage/Desktop/Test/Snip20150713_299.png",
                       @"/Users/xiaomage/Desktop/Test/Snip20150713_500.png"
                       ];
    [Main createZipFileAtPath:@"/Users/xiaomage/Desktop/TestAbc.zip" withFilesAtPaths:paths];
}

@end

 

 

//
//  ViewController.m
//  09-掌握-解压缩

#import "ViewController.h"
#import <SSZipArchive.h>

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
//    [SSZipArchive createZipFileAtPath:<#(NSString *)#> withFilesAtPaths:<#(NSArray *)#>];
//    [SSZipArchive createZipFileAtPath:<#(NSString *)#> withContentsOfDirectory:<#(NSString *)#>];
}

@end

 

源码0602-08-掌握-解压缩

标签:rect   director   ipa   file   des   array   creat   压缩   dir   

原文地址:http://www.cnblogs.com/laugh/p/6605783.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!