You must assign a value to this static variable by doing the following:
-(id)init{ ExampleClass.CONST_VAR = 1; }
Since this is a static variable or a "class variable", you should use the class name anyway, no matter where you are, from within the same class.
Hope this helps.
source share