Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Watchkit Table Row Background Color programatically

Is there any way to set the color of a WatchKit Table Row programmatically?

On the iPhone part of my app, I set each specific Table Cell with:

cell.backgroundColor = [self colorWithHexString:[stringArrayColor objectAtIndex:indexPath.row]];

So basically trying to set the background color of each of these types of rows:

enter image description here

like image 504
SRMR Avatar asked Feb 26 '26 04:02

SRMR


2 Answers

Instead of setting the background color of the row, you set the background color of the group.

like image 113
Bonan Avatar answered Feb 28 '26 18:02

Bonan


Maybe after Watch OS 2.0 you can change color of row but for now you can only change color for group like this:

[row.rowGroup setBackgroundColor:[UIColor clearColor]];
like image 29
Samrez Ikram Avatar answered Feb 28 '26 17:02

Samrez Ikram



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!