更改NavgationController Push 和 Pop 方向的记录

Puh的代码
CATransition* transition = [CATransition animation]; transition.type = kCATransitionPush; transition.subtype = kCATransitionFromLeft; [self.navigationController.view.layer addAnimation:transition forKey:kCATransition]; ETCPPersonCenterViewController *con = [ETCPStoryboard controllerInStoryboard:@"ETCPPersonCenterStoryboard" withIdentifier:@"ETCPPersonCenterViewController"]; [self.navigationController pushViewController:con animated:NO];
Pop代码
CATransition *animation = [CATransition animation]; animation.type = kCATransitionMoveIn; animation.subtype = kCATransitionFromRight; [animation setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionLinear]]; [self.navigationController.view.layer addAnimation:animation forKey:nil]; [self.navigationController popViewControllerAnimated:NO];

你可能感兴趣的:(更改NavgationController Push 和 Pop 方向的记录)