Skip to content

Commit

Permalink
Updated example usage, removed redundant paragraph
Browse files Browse the repository at this point in the history
  • Loading branch information
abbeycode committed Dec 19, 2014
1 parent aff1110 commit 63d64fa
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,21 @@ URKArchive *archive = [URKArchive rarArchiveAtPath:@"An Archive.rar"];

NSError *error = nil;

NSArray *filesInArchive = [archive listFiles:&error];
NSArray *filesInArchive = [archive listFilenames:&error];
BOOL extractFilesSuccessful = [archive extractFilesTo:@"some/directory"
overWrite:NO
progress:
^(URKFileInfo *currentFile, CGFloat percentArchiveDecompressed) {
NSLog(@"Extracting %@: %f%% complete", currentFile.filename, percentArchiveDecompressed);
}
error:&error];
NSData *extractedData = [archive extractDataFromFile:@"a file in the archive.jpg"
progress:^(CGFloat percentDecompressed) {
NSLog(@"Extracting, %f%% complete", percentDecompressed);
}
error:&error];
```
UnrarKit is a CocoaPods project, which is the recommended way to install it. If you're not familiar with [CocoaPods](http://cocoapods.org), you can start with their [Getting Started guide](http://guides.cocoapods.org/using/getting-started.html).
# Installation
Expand Down

0 comments on commit 63d64fa

Please sign in to comment.