I have a UICollectionView
with labels inside the cells that change automatically periodically. When this update triggers I call reloadData
on the UICollectionView and I have set the cells to change the background colour on [UICollectionViewCell setHighlighted:].
The problem is if a user holds down on a cell then the update happens, when the user releases the cell stays highlighted and also cannot be selected anymore.
I have noticed that dequeueReusableCellWithReuseIdentifier:forIndexPath:
calls setHighlighted on the cells after reloadData.
I have also tried reloadSections:
instead of reloadData, this fixes the problem of the cells getting 'stuck', but causes a fade out and in on the cells when ever its called.
Placing the calls inside performBatchUpdates:
doesn't seem to fix the problem either.