当前代码: -
let vc = self.storyboard?.instantiateViewController(withIdentifier: "vcProfile")
vc.modalTransitionStyle = .crossDissolve
vc.modalPresentationStyle = .overFullScreen
self.navigationController?.pushViewController(vc, animated: true)
答案 0 :(得分:2)
推送方法后使用此方法: -
UIView.transition(with:self.navigationController!.view,duration:1.0,options:UIViewAnimationOptions.transitionFlipFromRight,animations:nil,completion:nil)