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.
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.