Copying the bitmap contents of a UIView's context to that of another UIView

Posted by Joonas Trussmann on Stack Overflow See other posts from Stack Overflow or by Joonas Trussmann
Published on 2010-04-20T07:32:23Z Indexed on 2010/04/20 12:23 UTC
Read the original article Hit count: 795

Filed under:
|
|

Basically what I want to do is copy the already rendered content (a PDF drawn into the UIView's graphics context using CGContextDrawPDFPage()) onto a similar UIView, without having to re render the PDF. The idea is, that I'd then be able to perform an animated transform on the UIView and later re render the PDF with more accuracy. For both UIViews I'm using a larger-than-screen CATiledLayer to make it easier to rerender the PDF once the user zooms in, if that makes any difference.

Any tips? I'm kind of lost here.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about quartz