brightec / CustomCollectionViewLayout

Custom layout for a collection view using horizontal and vertical scrolling with sticky rows and columns
MIT License
519 stars 123 forks source link

unknown number of columns #3

Closed ohayon closed 8 years ago

ohayon commented 9 years ago
 // Tip: If we don't know the number of columns we can call the following method and use the NSUInteger object instead of the NUMBEROFCOLUMNS macro
     NSUInteger numberOfItems = [self.collectionView numberOfItemsInSection:section];

where does this section variable come from?

ohayon commented 9 years ago

the NUMBEROFCOLUMNS macro is also being used in calculateItemSize not so clear on how to make this dynamic.

Ashutos39 commented 6 years ago

Did you get any solution for this? how to make it dynamic