I’m using this code to customize the colour of my cell’s background view:
UIColor *cellBackgroundColor = [UIColor colorWithRed:255.0 green:255.0 blue:255.0 alpha:1.0];
cell.contentView.backgroundColor = cellBackgroundColor;
The thing is, it doesn’t work. This code though, works perfectly fine:
cell.contentView.backgroundColor = [UIColor redColor];
What’s the problem here? Can’t I customize the colour of a cell to my liking? Or am I doing something wrong?
you have to set Cell Background with this Delegate:-
Your table look like:-
Taking an RGB color and normalizing it with UIColor on the iPhone