From 163a811ddb879c0870ad24f0d6bbe09e45ae7e0e Mon Sep 17 00:00:00 2001 From: Douglas Bumby Date: Sun, 12 Jul 2015 12:52:18 +0100 Subject: [PATCH] Add Carthage instructions and more --- README.md | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a36836f..38c745e 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,26 @@ #ZipArchive +[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) +[![License](http://img.shields.io/badge/license-MIT-lightgrey.svg?style=flat +)](http://mit-license.org) ZipArchive is a simple utility class for zipping and unzipping files on iOS and Mac. -##How to add ZipArchive to your project +##Installation and Setup +####Carthage +Carthage builds the dependencies and provides a binary framework for ZipArchive. To add ZipArchive to your project using Carthage, create a Cartfile and add: +```ogdl +github "ZipArchive/ZipArchive" "master" +``` + +####CocoaPods +*currently not working. + +####Manual 1. Add the `ZipArchive` and `minizip` folders to your project. 2. Add the `libz` library to your target -ZipArchive requires ARC. - -###Usage +##Usage ```objective-c // Unzip Operation NSString *zipPath = @"path_to_your_zip_file";