I need to use the same color in a bunch of files so I decided to make "global variables" to do it. I created an NSObject
class called ColrClass
and implemented some class methods like this:
+(UIColor *) returnRedColor {
UIColor *redColr = [UIColor colorWithRed:0 green:0.433 blue:0.804 alpha:1];
return redColr;
}
So my question, is there any other way to do the same? I would like to use the most rational solution, but not sure that these class methods would be the best. Am I wrong and it is a nice solution? Or are there any better solutions?