我有一类readwrite
int
属性:
@interface PlayScene : UIView
@property (readwrite, assign) int Figure1;
@property (readwrite, assign) int Figure2;
@property (readwrite, assign) int Figure3;
但是,当我试图改变属性的值,就会发生错误:
[self Figure1] = 1;
分配给一个Objective-C消息的“只读”返回的结果不允许
问题是什么?