I have looked on SO but cannot find an answer that works for me, so here goes:
I am trying to set color, font and size elements based on user preferences. I have no problem with font and font size, but I cannot seem to get the color to work.
This is what I'm doing:
I have a group of constants, like:
asterisk define kBlackColor @"[UIColor blackColor]"
In reading my prefs file, I've determined that I want the blackColor, and set
txtColor = kBlackColor;
txtColor is defined as:
NSString *txtColor;
When I want to use txtColor, I'm writing this:
cell.textLabel.textColor = (UIColor *) txtColor;
This compiles, but gives me an "unrecognized selector sent" message.
I would appreciate knowing the right way to go about this..