So I have the following initialize method :
+(void)initialize
{
static BOOL init = NO
if init == NO
{
NSDictionary *dict = @{NSFontAttributeName......};
init = YES;
}
}
Now, I have a method say - drawer which requires dict
-(void) drawer:(CGRect)rect
{
[self.string drawInRect:CGRect........... withAttributes:dict];
}
When I call the dict in drawer, Xcode says - "Use of undeclared identifier dict. Why does this happen? Can someone help me out here? How do I get this method to access dict?