Reputation: 421
Hey guys i want to make the background of my cell color to be like this .check the attached image.
thanks
Upvotes: 1
Views: 312
Reputation: 25692
INSIDE cellforrowind.... function
cell.contentView.backgroundColor = [UIColor clearColor];
cell.backgroundColor = [UIColor lightGrayColor];
or
[UIColor colorWithRed:(CGFloat)red green:(CGFloat)green blue:(CGFloat)blue alpha:(CGFloat)alpha];
change those value with red ,green blue ,alpha
Upvotes: 1
Reputation: 2822
u have to use gradients to get this look.take a look at this tutorial (gradients part) http://www.raywenderlich.com/2033/core-graphics-101-lines-rectangles-and-gradients
Upvotes: 2