如何在导航控制器中从下到上而不是从右到左更改顺序转换样式?

问题描述 投票:-1回答:1

我正在尝试使用Segue在导航控制器中更改过渡动画以从下到上加载新的UIView控制器。我相信实施起来不会太难,但也许我听不懂。

我的第一次尝试是使用Hero库,但由于某些原因它无法正常工作。

到目前为止找到的答案仅在Objective-C中

swift animation uinavigationcontroller segue transition
1个回答
0
投票

您可以尝试此解决方案以模态显示您的新控制器。


let storyboard = UIStoryboard(name: "Storyboard Name", bundle: nil)
let controller = storyboard.instantiateViewController(withIdentifier: "Controller Name
")
self.present(controller, animated: true, completion: nil)


© www.soinside.com 2019 - 2024. All rights reserved.