apploft / APLExpandableCollectionView

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

Add new sections dynamically #3

Closed stellz closed 9 years ago

stellz commented 9 years ago

I was trying to implement adding of new sections when pressing a button. Instead of hard coded value for the number of sections I use an array of items and add new item into that array on button press; after that I call the [collectionView reloadData]; It seems simple enough but unfortunately the app crashes and I cannot manage to reload the data to show the new section. Can you please give me some advice on how could this be achieved in the current implementation. It would be very, very helpful.