Hi guys,
I can define global strings like this:
// .h
extern NSString * const myString;
// .m
NSString * const myString = @"String";
Now I need to define UIcolor similarly, How can I do it?
I'm trying:
// .h
extern UIColor * const myColor;
// .m
UIColor * const myColor = [UIColor colorWithRed:1.0 green:0.0 blue:0.0 alpha:1.0];
But it doesn't work, I'm getting error: initializer element is not constant
Thanks