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

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -