Font color for UILabel not changing

I encountered the same issue but it was cause by setting a custom color in the storyboard. Apparently you must have the color attribute set to default in order to change it programatically. I found this true with all UIViews.


I was trying change programtelly the textcolor of a UILabel in a UITabelViewCell in cellForRowAt. And the label just change the textcolor after being reloaded.

I could change the label textColor in the beggining after change the TEXTCOLOR IN STORYBOARD TO DEFAULT and i change it programatelly.


Make sure your label's behavior like that. enter image description here