Latest 0.0.1
Homepage https://github.com/WPMedia/WPZipArchive
License MIT
Platforms ios 4.3, osx 10.6, requires ARC
Authors

WPZipArchive is a simple utility class for zipping and unzipping files on iOS and Mac.

  • Unzip zip files
  • Unzip password protected zip files
  • Create new zip files
  • Append to existing zip files
  • Zip files
  • Zip-up NSData instances (with a filename)

Installation and Setup

CocoaPods

pod install WPZipArchive

Manual

  1. Add the WPZipArchive and minizip folders to your project.
  2. Add the libz library to your target

WPZipArchive requires ARC.

Usage

Objective-C

#import <WPZipArchive/WPZipArchive.h>

// Create
[WPZipArchive createZipFileAtPath: zipPath withContentsOfDirectory: sampleDataPath];

// Unzip
[WPZipArchive unzipFileAtPath:zipPath toDestination: unzipPath];

Swift

@import WPZipArchive

// Create
WPZipArchive.createZipFileAtPath(zipPath, withContentsOfDirectory: sampleDataPath)

// Unzip
WPZipArchive.unzipFileAtPath(zipPath, toDestination: unzipPath)

License

WPZipArchive is protected under the MIT license and our slightly modified version of Minizip 1.1 is licensed under the Zlib license.

Acknowledgments

Latest podspec

{
    "name": "WPZipArchive",
    "version": "0.0.1",
    "summary": "Utility class for zipping and unzipping files on iOS and Mac.",
    "description": "WPZipArchive is a simple utility class for zipping and unzipping files on iOS and Mac.",
    "homepage": "https://github.com/WPMedia/WPZipArchive",
    "license": {
        "type": "MIT",
        "file": "LICENSE.txt"
    },
    "authors": {
        "Sean Soper": "[email protected]"
    },
    "source": {
        "git": "https://github.com/WPMedia/WPZipArchive.git",
        "tag": "0.0.1"
    },
    "platforms": {
        "ios": "4.3",
        "osx": "10.6"
    },
    "source_files": [
        "WPZipArchive/*",
        "WPZipArchive/minizip/*"
    ],
    "public_header_files": "WPZipArchive/*.h",
    "libraries": "z",
    "requires_arc": true
}

Pin It on Pinterest

Share This