iphone - changing uifont color in a table cell -
i trying change color of cell using following code, displays cell's white font instead of gold rgb color code have.
if (row == 0) cell.detailtextlabel.text=@"an blah blah"; cell.textlabel.textcolor = [uicolor colorwithred:139 green:136 blue:120 alpha:1];
you're setting on wrong label, should work:
cell.detailtextlabel.text=@"an blah blah"; cell.detailtextlabel.textcolor = [uicolor colorwithred:139/255.0f green:136/255.0f blue:120/255.0f alpha:1];
Comments
Post a Comment