Amrit
Amrit

Reputation: 421

UItableview cell background color

Hey guys i want to make the background of my cell color to be like this .check the attached image.

thanksenter image description here

Upvotes: 1

Views: 312

Answers (2)

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

sujith1406
sujith1406

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

Related Questions