global UIColor?
#import XXConstants.h
@implementation XXConstants
const NSString *const1 = @MyString;
const int const2 = 111;
UIColor * const3 = [UIColor colorWithRed:.11 green:.11 blue:.11 alpha:
1]; //the offender
@end
___
Cocoa-dev mailing list
in my app, and have come across a
problem. I wish to have a standard UIColor to use for all titles in
my app but I get the error error: initializer element is not
constant and for obvious reasons , but my question is: How am I
'supposed' to implement a single global UIColor?
#import
global UIColor?
#import XXConstants.h
@implementation XXConstants
const NSString *const1 = @MyString;
const int const2 = 111;
UIColor * const3 = [UIColor colorWithRed:.11 green:.11 blue:.11
alpha:1]; //the offender
@end
___
Cocoa-dev mailing