How to create custom view controller container using storyboard in iOS 5

后端 未结 2 1593
别跟我提以往
别跟我提以往 2020-12-24 02:52

In iOS5 using storyboard feature I want to create a custom container which will have 2 ViewControllers embedded in it. For Example, embed Table view controller

2条回答
  •  旧时难觅i
    2020-12-24 03:01

    There is a way to do it that isn't too hacky. It is described at the following URL for UITabBarControllers, which you could use the first view controller in the list control the first subview, and the second one control the other. Or, you can probably adapt the code to work with UISplitViewController.

    http://bartlettpublishing.com/site/bartpub/blog/3/entry/351

    Basically, it works by replacing the tabbarcontroller at runtime after iOS has finished configuring it.

提交回复
热议问题