apploft / APLExpandableCollectionView

UICollectionView subclass with vertically expandable and collapsible sections
MIT License
110 stars 14 forks source link

Collection View Datasource not getting Updated #14

Open zappe-roman opened 8 years ago

zappe-roman commented 8 years ago

I am using a single collectionview to load three collection of data based on three button clicks.First collection has say 2 items so the datasource gets updated, now if any of the remaining two collections has data more than 2 items, app crashes.

[__NSArrayM objectAtIndex:]: index 2 beyond bounds [0 .. 1]

michaelkamphausen commented 8 years ago

Have you called reloadData on your collection view after you've changed the dataSource? Anyway, this pod has not been designed with dynamically changing dataSources in mind. You might need to extend it for your use case.