The layout you describe (items arranged in an indefinitely long horizontal line and sections arranged in an indefinitely long vertical line) resembles the "featured" section of the App Store :)
I have been meaning to use a similar concept in some of my apps too, and I think the trick here is that it's not handled by a single UICollectionView
. It appears that what you are looking for can be achieved by using a UITableView
as a base, and have each section of your content take up a single cell in the table. That is, each UITableViewCell
would contain a UICollectionView
with horizontal scrolling.
The key limitation of UICollectionView
that is sometimes not trivial to understand is that it is, after all, a single scrollView
. You can override some functionality to enable scrolling in both directions, but if you want some content to scroll one way, and some content to scroll another way, you would have to create nested scrollView
s.