How do I hook up UICollectionViewController in UIContainerView

后端 未结 2 1427
慢半拍i
慢半拍i 2021-01-20 02:56

I have an app that looks like this:

\"Storyboard\"

ViewController is the parent VC into wh

相关标签:
2条回答
  • 2021-01-20 03:32

    Create a uiviewcontroller class to manage the bottom container. Link as you normally would using that view controller. Connect delegate, datasource, implement the delegate and data source... etc...

    0 讨论(0)
  • 2021-01-20 03:33

    I ran into the same issue, this is what worked for me:
    1: Click the "Show Document Outline" button in the bottom left of your storyboard.
    2: Find "Bottom Container View" which should be a subclass of UICollectionViewController
    3: Cut the subviews of the highest level view (Everything you see from expanding the first view)
    4: Delete that primary view and paste back in your collection view

    Essentially, the top view has to be a UICollectionView and not the usual UIView that is defaulted by putting the Container into the storyboard.

    0 讨论(0)
提交回复
热议问题