MGSplitViewController using Storyboards

丶灬走出姿态 提交于 2019-12-23 03:31:42

问题


I have been working on this for some time now and just cant quite get it to work... Has anyone implemented a MGSplitViewController app using storyboards in iOS 5? I just cant get anything to show up like in the example project and was wondering if there were any tutorials or just steps to getting this to work...

Thanks


回答1:


iOS 5 allows you to custom create View Controller containers. Refer to "Implementing UIViewController Containment". They have a sample project demo, but not sure if they have published the source code.

I think you can create a root ViewController that holds two more child ViewControllers

  • Child 1 - Has UITableView and is aligned left.

  • Child 2 - Has UIView for the details on the right.

MGSplitViewController style transition could be achieved through transitionFromViewController:toViewController:



来源:https://stackoverflow.com/questions/9590453/mgsplitviewcontroller-using-storyboards

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