当从故事板设置UITabBarController转换不工作

问题描述:

我的应用程序在UITabBarController中有四个选项卡。我正在使用故事板来布局我的应用程序。在Attributes Inspector中,我将UITabBarController的Transition Style设置为Cross Dissolve。但是当我运行该应用程序时,这些标签仍然没有任何转换就卡入到位。谢谢你的帮助。当从故事板设置UITabBarController转换不工作

UPDATE

进一步的调查采取了我的委托方法

`tabBarController:animationControllerForTransitionFromViewController:toViewController:` 

但该方法的问题是,文件说,该方法是Called to allow the delegate to return a UIViewControllerAnimatedTransitioning delegate object for use during a noninteractive tab bar view controller transition.下面我就非交互式的意思“不是由于用户点击”。但是我想要定义的转换正好是用户在TabBar图标上点击的时候。

+1

如果我能投下来谁下来投给不给解释这个问题的人。 – 2014-08-27 20:50:08

+0

当人们投票而没有给出解释时,为什么我不浪费时间要求解释。但@KonsolLabapen感谢您的回复;它有更多。 – learner 2014-08-27 22:11:34

+0

从WWDC 2013有一个很好的演讲:218. 特别是,交互式转换是指动画的速度和成功取决于用户在动画过程中所做的事情(例如在标签视图之间滑动)。 道歉为复活旧的答案,但我希望看到这个参考,当我打这个问题。 – 2016-04-07 16:19:31

下面的文章应该有你需要的。它有各种各样的例子,并且还有一个git项目。 http://objectivetoast.com/2014/03/17/custom-transitions-on-ios/。 git的项目看是

https://github.com/ObjectiveToast/CustomTransitions

https://github.com/twotoasters/Toast