摘要:
使用UIWebView显示html,提示:err is Error Domain=WebKitErrorDomain Code=101 “The operation couldn’t be completed. (WebKitErrorDomain error 101.)”NSString *path = [[NSBundle mainBundle] pathForResource:@"vhugo" ofType:@"epub"];NSURL *url = [NSURL URLWithString:[path stringByAddingPercentE 阅读全文
摘要:
- (void)drawRect:(CGRect)rect{ [self showPage:m_currentPageIndex];}- (void)showPage:(int)pageIndex{ CGContextRef cntxRef = UIGraphicsGetCurrentContext(); CGPDFPageRef page = CGPDFDocumentGetPage (m_docRef, pageIndex);// 2 // Quartz画图得坐标系统是以左下角为开始点,但iphone视图是以左上角为开始点 CGContextTranslateCTM(cntxRef, 0. 阅读全文