views:

125

answers:

1

Hello everyone, I wanted to know if anyone managed a pagecurl from the top using the CATRANSITION. I have the following :

CATransition *animation = [CATransition animation];
 [animation setDelegate:self];
 [animation setDuration:0.35];
 [animation setTimingFunction:UIViewAnimationCurveEaseInOut];
 animation.type = @"pageCurl";

 animation.subtype = kCATransitionFromTop;

 animation.fillMode = kCAFillModeForwards;

 animation.endProgress = 0.30;
 [animation setRemovedOnCompletion:NO];
 [self.view.layer addAnimation:animation forKey:@"pageCurlAnimation"];

but unfortunately, it always does the page curl from the bottom. I will be very grateful if anyone can tell me how to do a page curl from the top.

Many thanks.

A: 

Found the answer, need to set subtype to from right!