I have a class with readwrite intproperties:
@interface PlayScene : UIView
@property (readwrite, assign) int Figure1;
@property (readwrite, assign) int Figure2;
@property (readwrite, assign) int Figure3;
But when I try to change the value of the properties, an error occurs:
[self Figure1] = 1;
assigning a readonly result to an Objective-C message return is not allowed
What is the problem?
source
share