简体   繁体   English

Swift-Segue从左向右过渡,而无需嵌入导航控制器

[英]Swift - Segue Transition Left to Right without embedding Navigation Controller

This may be a simple one but Im trying to find an elegant solution to it. 这可能是一个简单的方法,但是我正在尝试找到一种优雅的解决方案。 Is there a way to make the segue transition go left to right rather than the default bottom up other than by embedding a Navigation Controller? 除了嵌入导航控制器之外,是否有办法使segue过渡从左到右,而不是默认自下而上? Ive used all the available storyboard segues and they dont make any noticeable change Ive使用了所有可用的情节提要Segue,它们并没有进行任何明显的更改

Thanks for that. 感谢那。 I found that the best solution for me was to just embed a Navigation Controller but then hiding it by using the code: 我发现对我来说最好的解决方案是仅嵌入一个导航控制器,然后使用代码将其隐藏:

self.navigationController?.navigationBarHidden = true self.navigationController?.navigationBarHidden = true

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM