如何通过导航堆栈推送视图控制器交叉溶解动画?

时间:2018-01-23 14:27:28

标签: ios swift

当前代码: -

        let vc = self.storyboard?.instantiateViewController(withIdentifier: "vcProfile")
    vc.modalTransitionStyle = .crossDissolve
    vc.modalPresentationStyle = .overFullScreen
    self.navigationController?.pushViewController(vc, animated: true)

1 个答案:

答案 0 :(得分:2)

推送方法后使用此方法: -

UIView.transition(with:self.navigationController!.view,duration:1.0,options:UIViewAnimationOptions.transitionFlipFromRight,animations:nil,completion:nil)