NSDictionary
// 1.
NSDictionary *colors = @{ @"green” : [UIColor greenColor],
@“blue” : [UIColor blueColor],
@“red” : [UIColor redColor] };
NSString *colorString = ...;
UIColor *colorObject = colors[colorString];