改变pushViewController的push方向
2016-06-12 本文已影响159人
Cz1024
CATransition* transition = [CATransition animation];
transition.type = kCATransitionPush;//可更改为其他方式
transition.subtype = kCATransitionFromTop;//可更改为其他方式
[self.navigationController.view.layer addAnimation:transition forKey:kCATransition];
[self.navigationController pushViewController:userLogin animated:NO];