I'm trying to screen capture a view that uses CATiledLayers (for animation) but unable to get the image that I want.
I tried it on Apple's "PhotoScroller" sample application and added this:
CGContextRef ctx = UIGraphicsGetCurrentContext();
UIImage *screenshot = UIGraphicsGetImageFromCurrentImageContext();
In the end, rather than trying to render the tiles into another view just for animation, I just created a new instance of
ImageScrollView, and animated the original one and the new one together before deallocating the original one.