• Stars
    star
    566
  • Rank 78,774 (Top 2 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created over 11 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An Objective-C epub extracting and parsing framework for iOS and OSX.

KFEpubKit

An Objective-C epub extracting and parsing framework for OSX and iOS.

Alt Example Screenshots

#Usage

Load from a local URL โ€ฆ

NSURL *epubURL = [[NSBundle mainBundle] URLForResource:@"tolstoy-war-and-peace" withExtension:@"epub"];
NSURL *documentsURL = [[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] lastObject];
self.epubController = [[KFEpubController alloc] initWithEpubURL:epubURL andDestinationFolder:documentsURL];
self.epubController.delegate = self;
[self.epubController openAsynchronous:YES];

โ€ฆ and add delegate methods

- (void)epubController:(KFEpubController *)controller didOpenEpub:(KFEpubContentModel *)contentModel
{
	NSLog(@"opened: %@", contentModel.metaData[@"title"]);
}

In-depth usage is explained in the included examples for both OSX and iOS.