开发者

Dynamically change UITableView cell separator line color

Can anyone give sample code h开发者_如何学编程ow to change the UITableView cell separator line color dynamically?


i assumed asking about tableview seperator color

use switch to all color then like this u can

 [tableview setSeparatorColor:[UIColor grayColor]];

OR

Here R, G, B are float for different Color value.

 [tableview setSeparatorColor:[UIColor colorWithRed:R green:G blue:B alpha:1]];

Often I use this below code

 [tableview setSeparatorColor:[UIColor colorWithRed:190/255.0f green:195.0/255.0f blue:199.0/255.0f alpha:1]];
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜