Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Is there a way to show flow (grid) layout? #3

Open
mixtly87 opened this issue Nov 7, 2015 · 1 comment
Open

Is there a way to show flow (grid) layout? #3

mixtly87 opened this issue Nov 7, 2015 · 1 comment

Comments

@mixtly87
Copy link

mixtly87 commented Nov 7, 2015

For example, when you enter Cat details, there are two segments:

  1. Details,
  2. Sightings

Imagine sightings is some kind of grid. Can that be done? All I see is tableview mimic.

@mcicak
Copy link

mcicak commented Nov 8, 2015

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants