【发布时间】:2011-12-04 03:42:29
【问题描述】:
我的班级里有一个 NSInteger,就像这样
在@界面中:
NSInteger currentRow;
@property (assign) NSInteger currentRow;
在@实现中:
@synthesize currentRow;
执行[self setCurrentRow:0] 似乎工作正常,但使用[self currentRow] 只是由于某种原因返回null,不知道为什么。使用断点时,我可以看到 currentRow 的值是 0,所以它设置得很好,但我无法取回该值。
【问题讨论】:
标签: objective-c macos cocoa