AdvancedCollectionView
AdvancedCollectionView copied to clipboard
Is there a way to show flow (grid) layout?
For example, when you enter Cat details, there are two segments:
- Details,
- Sightings
Imagine sightings is some kind of grid. Can that be done? All I see is tableview mimic.
Yes there is. On your dataSource which is in AAPLSegmentedDataSource, you can (usually in viewDidLoad): dataSource.defaultMetrics.numberOfColumns = 3; dataSource.defaultMetrics.showsColumnSeparator = YES; dataSource.defaultMetrics.showsRowSeparator = YES;
If your row height and columns count depend on collection-view frame, you can set those and additional options in viewWillLayoutSubviews.