skyylex / SKEPReader

ePub reader example based on the https://github.com/fedefrappi/AePubReader
1 stars 3 forks source link

Cover page is not loaded when pushing from UINavigationController #1

Open bnagarjuna opened 9 years ago

bnagarjuna commented 9 years ago

Hi sir... It's working good,but i used pushViewController to EPubViewController.at the time only not loaded cover page.Please help me.......

EPubViewController *vc = [[EPubViewController alloc]init];
[vc loadEpub:[NSURL fileURLWithPath:filePath]];
[self.navigationController pushViewController:vc animated:YES];

Thanks in advance.....

skyylex commented 9 years ago

Could you specify an epub that was used?

bnagarjuna commented 9 years ago

i used this code...

NSString * bundlePath = [[NSBundle mainBundle]bundlePath];
NSData *pdfData = [[NSData alloc] initWithContentsOfURL:[NSURL URLWithString:@"http://www.ncert.nic.in/tbEPUB/epub/jesc105.epub"]];
NSString *filePath = [bundlePath stringByAppendingPathComponent:@"iesc104.epub"];

[pdfData writeToFile:filePath atomically:YES];
NSLog(@"dynamic filePath iss....%@",filePath);

NSString *epubFilepath = [[NSBundle mainBundle] pathForResource:@"jemh101" ofType:@"epub"];

EPubViewController *vc = [[EPubViewController alloc]init];
[vc loadEpub:[NSURL fileURLWithPath:filePath]];
[self.navigationController pushViewController:vc animated:YES];
zlpcrmm commented 9 years ago

hello buddy, how can we read the epub file which include the pictures? it seems the pic not zoom to the device screen. any idea on it? thanks in advance.

skyylex commented 9 years ago

@zlpcrmm , every epub is just a set of the html files linked together using xml description. In fact, appearance of each book depends on the css that was placed inside. I've created another issue for the zooming feature please describe you suggestions. Zooming images in the epub #2