I tried to put this in the header file of my view object:
@property (nonatomic) UIColor color;
to store the color that lines should be drawn with in this view.
Xcode gives me an error on this line:
Interface type cannot be statically allocated
What does that mean, and what should I do?
EDIT:
I did add a *, and at the point of synthesis, it said:
ARC forbid synthesizing a property of Objective C object with unspecified ownership or storage attribute?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…