简体   繁体   English

如何将模态动画设置为与推送动画相同?

[英]How to set modal segue animation the same as push segue animation?

There are four kinds of animations provided by apple with the modal segue. 苹果通过模态搜索提供了四种动画。 But neither is my favorite, I prefer the animation like the push segue animation? 但是我都不是最喜欢的,我更喜欢像推推式连续动画那样的动画吗? How could I archive it? 我该如何存档? Is there any open source code for custom segue with different animations? 是否有用于不同动画的自定义segue的开源代码? Thanks in advance! 提前致谢!

ps. PS。 Actually I have a tabView with several child view, one of them is a tableView, each cell will drill in an detail view. 实际上,我有一个带有多个子视图的tabView,其中一个是tableView,每个单元格都会在详细视图中进行钻取。 It is normal to push the detail view, but I do not want the tab bar come into the detail view as well. 推送详细视图是正常的,但是我也不想标签栏也进入详细视图。 Then I choose modal the detail view. 然后,我选择模式细节视图。 But i prefer the push animation. 但我更喜欢推动画。

After seeing your comment I figured this would help. 看到您的评论后,我认为这会有所帮助。 There is a setting to hide your tabBar when pushing instead of you having to fake a push with a modal transition. 有一个设置可以在推送时隐藏tabBar,而不必假冒带有模式过渡的推送。

在此处输入图片说明

Also in code can be easier. 同样在代码中可以更容易。 Check out this SO Hiding UITabBar when pushing a UIView 推送UIView时检查此SO 隐藏UITabBar

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

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