is it possible, to get a CATransition animation as UIImage? I make a example:
CATransition *animation = [CATransition animation];
[animation setDelegate:self];
[animation setDuration:0.35];
[animation setTimingFunction:UIViewAnimationCurveEaseInOut];
animation.type = @"pageCurl";
animation.fillMode = kCAFillModeForwards;
animation.endProgress = 0.65;
[animation setRemovedOnCompletion:NO];
[self.view.layer addAnimation:animation forKey:@"pageCurlAnimation"];
That is the animation, Im using. It looks like this: http://img269.imageshack.us/img269/8577/bildschirmfoto20100331u.png
How can I capture this curl up - effect? The problem is that I have to remove the animation from self.view.layer, but I need the curl-up picture later. Is it possible to get the animation(frame) as picture? I dont want to capture the whole UIView, only the animation.
You can use UIGetScreenImage() scheduled when the animation is being run. This would get you a screen capture as an image which would have the animation effect. Info at http://www.tuaw.com/2009/12/15/apple-relents-and-is-now-allowing-uigetscreenimage-for-app-st/