Search code examples
nsstringuicolor

How to get the name of a UIColor?


I have an array of UIColors like

[UIColor blueColor];

is it possible to get the name "blue" from that UIColor, to display it in a string?


Solution

  • There's nothing built in to UIKit, but Erica Sadun's uicolor-utilities library adds similar functionality.