KKGridView icon indicating copy to clipboard operation
KKGridView copied to clipboard

Deselect cells with animation doesn't animate

Open dirkvdb opened this issue 13 years ago • 0 comments

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.

dirkvdb avatar Jun 03 '12 08:06 dirkvdb