-
Notifications
You must be signed in to change notification settings - Fork 330
Open
Description
if (_model.type == ReaderEpub) {
_readView.type = ReaderEpub;
if (!_model.chapters[chapter].epubframeRef) {
NSLog(@"%@",_model.chapters[chapter].chapterpath);
NSString* html = [[NSString alloc] initWithData:[NSData dataWithContentsOfURL:[NSURL fileURLWithPath:_model.chapters[chapter].chapterpath]] encoding:NSUTF8StringEncoding];
_model.chapters[chapter].content = [html stringByConvertingHTMLToPlainText];
[_model.chapters[chapter] parserEpubToDictionary];
[_model.chapters[chapter] paginateEpubWithBounds:CGRectMake(0,0, [UIScreen mainScreen].bounds.size.width-LeftSpacing-RightSpacing, [UIScreen mainScreen].bounds.size.height-TopSpacing-BottomSpacing)];
}
_readView.epubFrameRef = **_model.chapters[chapter].epubframeRef[page];**
_readView.imageArray = _model.chapters[chapter].imageArray;
_readView.content = _model.chapters[chapter].content;
_readView.chapterModel=_model.chapters[chapter];
}
_model.chapters[chapter].epubframeRef[page]; 会在第二次打开图书的时候报错
Metadata
Metadata
Assignees
Labels
No labels