【发布时间】:2013-09-09 06:12:29
【问题描述】:
我有一个UITabBarController 作为我的rootViewController,并且基于一个动作,我在tabBarController 上调用presentViewController,它工作正常。呈现的控制器是 UINavigationController
基于我想通过使用transitionFromViewController:toViewController:duration:options:animations:completion: 从当前呈现的 UINavigationController 转换到不同的 UINavigationController 但引发错误的操作:
Parent view controller is using legacy containment in call to -[UIViewController transitionFromViewController:toViewController:duration:options:animations:completion:]
人们谈论在 UINavigationController 上调用它时会得到它,但这是针对 UITabBarController 的,我希望它有所不同。
最终,我想从当前呈现的 UINavigationController 过渡到具有交叉溶解的新 UINavigationController。我可以忽略第一个并展示第二个,但它是从底部滑出的。这可能吗?
【问题讨论】:
标签: ios uiviewcontroller uinavigationcontroller uitabbarcontroller modalviewcontroller