Skip to content

emailatravi/Archiver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Archiver

Version License Platform

Summary

This class will read and write objects that conform to the NSCoding protocol to disk.

AutoEncodeDecode provides persistance to any NSObject class with least effort.

Sample Code

NSArray *nameWriteArray = @[@"Ravi", @"Manish"];
[Archiver createFile:nameWriteArray aFileName:@"Name_File"];
    
NSArray *nameReadArray = [Archiver readFile:@"Name_File"];
NSLog(@"%@", [nameReadArray componentsJoinedByString:@" : "]);

There is more in Example project.

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

Archiver is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "Archiver"

Author

Ravi Prakash Sahu, emailatravi@gmail.com

License

Archiver is available under the MIT license. See the LICENSE file for more info.

Inspiration

NSObject-NSCoding