280north/cappuccino — Issue #10: CPCollectionView setMaxNumberOfRows
Author: Grumpf
Created: 2011-10-26 13:53:01+00:00
State: open

The function "setMaxNumberOfRows" in CPCollectionView does not work.
The function "setMaxNumberOfColumns" works.

This is the first part of the used setup, according to the "FloorPlan"-Example:
_spotCollectionView = [[CPCollectionView alloc] initWithFrame:CGRectMake(300.0, 0.0, CGRectGetWidth(bounds)-600.0, 400.0)];
[_spotCollectionView setMinItemSize:CGSizeMake(176.0, 50.0)];
[_spotCollectionView setMaxItemSize:CGSizeMake(176.0, 50.0)];
[_spotCollectionView setAllowsMultipleSelection: YES ];
[_spotCollectionView setMaxNumberOfRows: 7 ];
[_spotCollectionView setAutoresizingMask: CPViewMaxYMargin | CPViewWidthSizable ];
[_spotCollectionView setBackgroundColor:[CPColor colorWithHexString:"00ffff"]];