SRMR
SRMR

Reputation: 3144

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

Upvotes: 2

Views: 2647

Answers (2)

Samrez Ikram
Samrez Ikram

Reputation: 601

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]];

Upvotes: 3

Bonan
Bonan

Reputation: 719

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

Upvotes: 8

Related Questions