kolinkrewinkel/KKGridView — Issue #60: Cell Background Color - won't change
Author: PaulAik
Created: 2011-11-24 17:37:07+00:00
State: open

Hi,

Just been playing around with the demo app. There's a call in setCellBlock to assign the background colour, but changing this doesn't have any effect. I've found the only way currently to set the background colour correctly is to change it in KKGridView, in the layoutsubviews method (I've changed it to red here):

if (_selected) {
_contentView.backgroundColor = [UIColor clearColor];
_contentView.opaque = NO;
} else {
_contentView.backgroundColor = [UIColor redColor];
}

Cheers,

Paul