2014年1月10日

摘要: 使用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 阅读全文
posted @ 2014-01-10 13:11 trako 阅读(737) 评论(0) 推荐(0) 编辑
摘要: - (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. 阅读全文
posted @ 2014-01-10 13:07 trako 阅读(440) 评论(0) 推荐(0) 编辑

导航