I am trying to reload only the data section, not the header or footer (optional view), UICollectionView.
When I use the reloadData method, the header and footer section also reloads, so what I want.
I found the reloadSections: method, but I do not know why it does not work.
Since my view of the collection contains only one section, so I tried to use this method as follows:
[collectionViewController.collectionView reloadSections:[NSIndexSet indexSetWithIndex:0]]
But when the method is called, a runtime error occurs. Error Content:
'NSInvalidArgumentException', reason: '-[UICollectionViewUpdateItem action]: unrecognized selector sent to instance 0x90aec00'
Is it not possible to use the reloadSections: method? Is there an alternative way to reload a data section rather than a header or footer section?
glast source share