Color color animation roller?

In my project, I use page animation. My problem is that I want to show red against a twisted look. How do I achieve this? Thanks in advance.

enter image description here

CATransition *animation = [CATransition animation]; [animation setDelegate:self]; [animation setDuration:0.75]; [animation setTimingFunction:UIViewAnimationCurveEaseInOut]; animation.type = @"pageUnCurl"; animation.fillMode = kCAFillModeBackwards; animation.startProgress = 0.65; [animation setRemovedOnCompletion:NO]; [[self view] exchangeSubviewAtIndex:[self.view.subviews count]-2 withSubviewAtIndex:3]; [[self view] exchangeSubviewAtIndex:[self.view.subviews count]-3 withSubviewAtIndex:2]; [[[self view] layer] addAnimation:animation forKey:@"pageCurlAnimation"]; 

This is how I change my mind.

+7
source share
5 answers

This is possible if you use CALayer as the background page for the animation.

 topPageReverseOverlay = [[CALayer alloc] init]; topPageReverseOverlay.backgroundColor = [[[UIColor redColor] colorWithAlphaComponent:0.8] CGColor]; 
+1
source

If you use layers, and then when the application goes into the background process, you may lose the waving effect of that particular layer.

+1
source

If you need full control over the display of what is behind partial curling, you can install it as a separate VC. Here is an example:

 EndPartialCurlViewController *nextViewController = [[EndPartialCurlViewController alloc] init]; [nextViewController setModalTransitionStyle:UIModalTransitionStylePartialCurl]; [[self navigationController] presentViewController:nextViewController animated:YES completion:nil]; 

Then you can create any color, views, buttons, etc. that you want to use in this EndPartialCurlViewController.

0
source

I believe that the answer to your question can be found in this thread. Decreasing the color of a curling image using UIViewAnimationTransitionCurlUp

0
source

after a lot of surfing, I found that there is one way with filters and layes, we can achieve this, but one undocumented method, and if you use layers, and then when the application goes into the background process, you can lose the effect of waving this particular layer .

0
source

All Articles