ricobeck / KFEpubKit

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

Home Page:http://kfi-apps.com/cocoapods/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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

http://kfi-apps.com/cocoapods/

License:MIT License


Languages

Language:Objective-C 96.5%Language:Ruby 3.5%