I read a NSString from file and then I want to #define this as a UIColor so I can quickly change color\'s.
I want something to work like so:
#define GRAY
You could load the colors into a NSDictionary.
NSDictionary
// Put this in some global scope NSDictionary *colors = [NSDictionary dictionaryWithObjectsAndKeys: [UIColor darkGrayColor], @"GRAY", nil]; // using the dictionary myController.view.backgroundColor = [colors objectForKey:kColor];