【发布时间】:2018-07-07 20:14:22
【问题描述】:
我的应用程序中有一个导航栏,我将导航更改为模态显示但是当用户转到目标视图控制器时,我希望导航动画从左到右
这是我在第一个视图控制器中的代码
@IBAction func showProfilePage(_ sender: UIBarButtonItem) {
self.performSegue(withIdentifier: "showprofile", sender: self)
}
我为此阅读了苹果网站并使用了此功能
private func navigationController(_ navigationController: UINavigationController,
willShow viewController: ProfileViewController,
animated: Bool) {
}
但它不起作用所以我应该怎么做才能从左到右更改导航动画?
【问题讨论】:
标签: ios animation uinavigationcontroller swift4