I have a constant in a class, that I defined it by #define HEIGHT 65 And I know How I can get this out of this class by calling a getter method which returns this constant. I mean I don’t want doing this:
#define HEIGHT 65
.
.
.
-(int)getHeight{
return HEIGHT;
}
But question is there a way for defining a constant @property and get it by instanceClass.HEIGHT like other properties.
Any idea?
What about:
and then in the implementation file: