【发布时间】:2011-06-01 03:29:05
【问题描述】:
有什么区别
@interface URLCacheConnection : NSObject {
id <URLCacheConnectionDelegate> delegate;
}
@property (nonatomic, assign) id delegate;
@end
和
@interface URLCacheConnection : NSObject {
}
@property (nonatomic, assign) id<URLCacheConnectionDelegate> delegate;
@end
这两个类定义似乎都表现相同。在接口和属性中定义变量的目的是什么?
【问题讨论】:
标签: objective-c ios4