Store and get UIColor from .plist file
Clash Royale CLAN TAG #URR8PPP Store and get UIColor from .plist file I've been searching for this for a while now with no success. My question is: is there an easy way to store and get UIColors such as [UIColor blackColor] or [UIColor colorWithRed:0.38 green:0.757 blue:1 alpha:1]; in a .plist file in my app directory? [UIColor blackColor] [UIColor colorWithRed:0.38 green:0.757 blue:1 alpha:1]; 3 Answers 3 according to this discussion you have two options: NSData option NSData *theData = [NSKeyedArchiver archivedDataWithRootObject:[UIColor greenColor]]; NSString option NSString *color = @"greenColor"; [UIColor performSelector:NSSelectorFromString(color)] read more here: http://www.iphonedevsdk.com/forum/iphone-sdk-development/27335-setting-uicolor-plist.html Thanks, helped me a lot – kopproduction Aug 30 '11 at 14:4...