We recently had this question, and we found a fantastic article that uses your presentation layer and media format.
Check out the link here ...
We changed it to use the presentation layer instead, instead of ...
[self.layer renderInContext:context]
using...
[[self.layer presentatationLayer] renderInContext:context];
... it also captures the transitions of the animation block. Very neat.
Simon lee
source share