开发者

How can i set a light blue back ground color to my UITableView cell? [duplicate]

This question already has an answer here: Closed 11 years ago.

Possible Duplicate:

How can I set a cell on the iPhone as a custom color?

开发者_如何学C

i need to set a light orange back ground color to my UITableView cell.so please any one help me to do it.i used the following code to get green color.so please help me to do it.

need UIColor *myColor = "light orange color" also if you can UIColor *myColor = "light blue color"


You need RGB color values.

Then: UIColor *myColor = [UIColor colorWithRed: 180.0/255.0 green: 238.0/255.0 blue:180.0/255.0 alpha: 1.0];

Keep in mind that the values you enter for red green and blue are based on a max value of 1.0. Normal RGB numbers are based on a max of 255 so you need to divide regular values by 255 to get the right values.


Why not set your color to "clear" and use Photoshop (or some other editor" to make the color and style that you want?

[[cell textLabel] setBackgroundColor:[UIColor clearColor]];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜