Customizing a UICollectionView with multiple sections in a storyboard

enter image description here

This is the layout I am working on and that I ended up setting up section 1, which is represented by a black border. I want to be able to lay out my multiple cells and sections in a storyboard instead of using code, is that possible?

I find it difficult to customize section 2, which is represented by blue borders along with section 1, which have different layouts.

Is my approach to customizing the layout like wrowng? If so, some advice would be appreciated!

My storyboard (UICollectionView controller) enter image description here

+3


source to share


2 answers


My approach to solving this issue was to create a new UIViewController and inject into the UICollectionViews that I need, then set the data source and delegate accordingly.



-2


source


To maintain over layout, it is possible to keep a UITableview with a different section title and a UICollectionview inside each UITableviewCell to have horizontal scrolling. Hope this is helpful.



0


source







All Articles