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.
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.
To run the example project, clone the repo, and run pod install
from the Example directory first.
Archiver is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "Archiver"
Ravi Prakash Sahu, emailatravi@gmail.com
Archiver is available under the MIT license. See the LICENSE file for more info.