Navigate to a SplitViewController

こ雲淡風輕ζ 提交于 2019-11-27 15:52:40
DevDevDev

It should always be the root controller according to Apple.

The split view controller’s view should always be installed as the root view of your application window. You should never present a split view inside of a navigation or tab bar interface.

You can use a UISplitViewController in a UITabBarController without any problems. I have not attempted to push a UISplitViewController into an UINavigationController however.

(At least) with iOS 8 (which runs on any ipad except the first one) it's possible to use a "present modally"-segue to display a splitviewcontroller.

Drawback is that an existing navigation bar isn't displayed.

Mikeware

Check out the Multiple Detail Views sample app on Apple's Documentation, this could give you a good idea on how to deal with navigation structure and how to display views on the "splitViewController".

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!