AQGridView
AQGridView copied to clipboard
Can't set separator color
tried both
gridView.separatorColor = [UIColor redColor] [gridView setSeparatorColor: [UIColor redColor]]
No luck. Also tried the same in your ImageDemo, but no luck again.
Temporarily solved by modifying default value in UIColor+AQGridView
The problem is that - (void) setSeparatorColor: (UIColor *) color method inAGGridView is called before any visible cells are added to _visibleCells. When it is called again, the color is the same so the method is just returned. As a result the separator color is never set on the cell.
Not sure of the most elegant solution to fix this. Alan?
You can do a custom subclass of AQGridViewCell. Import "AQGridViewCell+AQGridViewCellPrivate.h". Then in your initialization code you can do a : self.separatorColor = [UIColor redColor]; It works but use private API...