navigationController Push 动画的设置
2017-05-10 本文已影响68人
kococlass
CATransition *transition = [CATransition animation];
transition.duration = 0.5;//动画时间
transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];
transition.type = kCATransitionPush;//动画类型
transition.subtype = kCATransitionFromBottom;//动画方向
transition.delegate = self;//指定代理
[self.navigationController.view.layer addAnimation:transition forKey:nil];//指定适用层
然后在进行push就可以了