Can anyone give sample code how 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]];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With