Linking child view controllers to a parent view controller within storyboard

后端 未结 5 1893

Can you associate child view controllers to a custom container view controller in Storyboard?

I can link child view controllers to a tab view controller, and I can l

5条回答
  •  不知归路
    2020-11-30 19:40

    The key to using multiple controllers in one scene (what I believe you are after here) is using the mysterious Object from the Objects list in IB to represent the other view controller and hooking up its outlets.

    This answer How to create custom view controller container using storyboard in iOS 5 should help I hope. The answer also provides a working example app which is very helpful.

提交回复
热议问题