Storyboard, UIViewController and UISplitViewController

…衆ロ難τιáo~ 提交于 2019-11-28 09:50:01

According to this Apple article, the split view controller must be the root. Here is a snippet:

A split view controller must always be the root of any interface you create. In other words, you must always install the view from a UISplitViewController object as the root view of your application’s window. The panes of your split-view interface may then contain navigation controllers, tab bar controllers, or any other type of view controller you need to implement your interface. Split view controllers cannot be presented modally.

It seems the documentation was updated soon after this question was posted. According to the new documentation there is no way to segue to a storyboard. Bummer!

Yes, It's possible passing from UIView to UISplitView. You have to use a custom segue.

Read this link (translate it from japanese)

UIViewController to UISplitViewController

Akhrameev

As for me, I used MGSplitViewController to implement SplitView with modal or push segues. Try it, it works!

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