Skip to content

打开电子书翻了几页之后把App不删除直接重装会出现闪退 #59

@noahxinhao

Description

@noahxinhao

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions