+(void) initialize in objecive c class static variables construstor
- by sugar
I found some sample code from here.
static UIImage *backgroundImageDepressed;
/**
*
*/
@implementation DecimalPointButton
+ (void) initialize {
backgroundImageDepressed = [[UIImage imageNamed:@"decimalKeyDownBackground.png"] retain];
}
is it something like this - +(void) initialize method initialize static variables of a class ( interface ) in objective c ? I have never seen this before.
Please need your guidance on it.
Thanks in advance for sharing your great knowledge.
Sagar