cocoa touch 에서의 간단한 pdf 핸드링 @interface MMPDFView : UIView { CGPDFDocumentRefpdfDoc; } - (void)loadPDF:(NSURL *)url; - (void)drawPdfPage:(int)page context:(CGContextRef)ctxt area:(CGRect)vrect isZoom:(BOOL)isZoom; @end @implementation MMPDFView - (void)loadPDF:(NSURL *)url { if(pdfDoc != nil) CGPDFDocumentRelease(pdfDoc); pdfDoc = CGPDFDocumentCreateWithURL((CFURLRef)url); [self setNeedsDisplay]; } - (void)drawPdfPage:(int).. 더보기 이전 1 ··· 37 38 39 40 41 42 43 ··· 95 다음