Quote:
Originally Posted by jordanmeir
how can i change sub view with a book style animation?
|
- (void)doCurlFromRight

NSNumber *)mode
{
// mode is YES for page animation from right side towards left side
// mode is NO for page animation from left side towards right size
BOOL mode_ = [mode boolValue];
NSString * animationName = mode_ ? @"CurlUpAnimation" : @"CurlDownAnimation";
UIViewAnimationTransition transition = mode_ ? UIViewAnimationTransitionCurlUp : UIViewAnimationTransitionCurlDown;
[UIView beginAnimations:animationName context:UIGraphicsGetCurrentContext()];
[UIView setAnimationTransition:transition forView:self.view cache:YES]; // animate the container view
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
[UIView setAnimationDuration:kCurlDelay];
// do your other stuff here
[UIView commitAnimations];
}
P.S.- replace

with : & ( [together]