1.创建
CATransition * transition = [CATransition animation];
transition.duration = 2;
2.设置过度样式
transition.type = kCATransitionMoveIn; //控制动画样式,
transition.subtype = kCATransitionFromTop; //控制方向
3.添加动画
[self.changeView.layer addAnimation:transition forKey:nil];
原文地址:http://qccccc.blog.51cto.com/6004423/1554476