设置push为pop样式

idcontroller = [[NSClassFromString(@"XXViewController")alloc]init];

CATransition* transition = [CATransitionanimation];

transition.type=kCATransitionPush;

transition.subtype=kCATransitionFromLeft;

[self.navigationController.view.layeraddAnimation:transitionforKey:kCATransition];

[self.navigationControllerpushViewController:controlleranimated:YES];

你可能感兴趣的:(设置push为pop样式)