CATransition* transition = [CATransition animation];
//改变视图控制器出现的方式
transition.type = kCATransitionPush;
//改变视图控制器出现的位置
transition.subtype = kCATransitionFromLeft;
[self.navigationController.view.layer addAnimation:transition forKey:kCATransition];
[self.navigationController pushViewController:yourVC animated:NO];
网友评论