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


    //
    //  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
    本人无商业用途,仅仅是学习做个笔记,特别鸣谢小马哥,学习了IOS,另日语学习内容有需要文本和音频请关注公众号:riyuxuexishuji
  • 相关阅读:
    链路的有效性检测 及 基于TCP的通信为什么需要RETRY
    python join
    协程
    python socket 选项
    Spring @Resource、@Autowired、@Qualifier的区别
    maven插件
    代码中的特殊注释
    AOP 底层技术比较
    关于Android开发中的证书和密钥等问题
    tomcat部署web项目的3中方法
  • 原文地址:https://www.cnblogs.com/laugh/p/6605783.html
Copyright © 2020-2023  润新知