【发布时间】:2011-01-16 17:18:59
【问题描述】:
我是Objective的新手。当我阅读许多教程时,@property 有一个类型的变量,同样的变量也在 @inferface 中声明。需要这个吗?
例子
@interface MyInterface : NSObject
{
NSInteger myVaribale;
}
@property(retain) NSInteger myVariable;
这里 myVariable 在两个地方都声明了。
【问题讨论】:
标签: iphone objective-c