KKGridView
KKGridView copied to clipboard
Deselect cells with animation doesn't animate
Calling
[self.gridView deselectItemsAtIndexPaths:[self.gridView indexPathsForSelectedCells] animated:YES];
does not cause the deselection to occur with an animation.
I set some breakpoints and think the problem is that this call triggers multiple deselection code, and the first one doesn't animate
In KKGridViewCell first setPressedState is called which will do _selectedBackgroundView.alpha = 0.f; without animation, next setSelected with a nimation gets called which will try to do the animation but the background is already invisible.