Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
根据文档,我已经使用主视图和详细视图实现了 UISSplitViewController。我想从当前详细信息视图中的表视图(didSelectRowAtIndexPath)中选择一个项目,然后将主视图(rootviewController)与当前详细信息视图切换并切换到新的详细信息视图。
这可能吗 ?
viewControllers您可以使用该属性更改由 UISplitViewController 管理的视图。
viewControllers
官方文档在这里。 http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UISplitViewController_class/Reference/Reference.html#jumpTo_4
viewControllers返回视图数组。零索引元素应该是左视图,一索引元素应该是右视图。