You can using:
CATransition* transition = [CATransition animation];
transition.duration = 0.5;
transition.timingFunction = [CAMediaTimingFunction functionWithName:
kCAMediaTimingFunctionEaseInEaseOut];
transition.subtype = kCATransitionFromLeft;
//kCATransitionMoveIn;kCATransitionPush, kCATransitionReveal, kCATransitionFade
//transition.subtype = kCATransitionFromTop;
//kCATransitionFromLeft, kCATransitionFromRight,
//kCATransitionFromTop, kCATransitionFromBottom
[appDelegate.navigation.view.layer addAnimation:transition forKey:nil];
viewController *ViewVC = [[viewController alloc] initWithNibName:@"viewController"
bundle:nil];
[appDelegate.navigation pushViewController:
ViewVC
animated:YES];
Comments
Post a Comment