I want to know how to change the Title Colour of a UIButton back to the default value.
I have a button that I change the title colour to indicate a something is on, like this;
[cell.offStateSwitch setTitleColor:[UIColor redColor] forState:UIControlStateNormal];
Then when it is off, I want to change it back to the default colour.
I cant figure out how to get the default system colour for a UIButton. I have found lots of people doing this by forcing a particular RGB value, but that is not necessarily correct across different versions of iOS.