【发布时间】:2013-05-15 17:49:14
【问题描述】:
将变量放在头文件中的@interface{} 声明中与在该声明之后放置@property 有什么区别?
例如,
@interface GameCenterManager : NSObject
{
GKInvite* pendingInvite;
}
@end
相对
@interface GameCenterManager : NSObject
@property (weak, nonatomic) GKInvite* pendingInvite
@end
【问题讨论】:
标签: ios objective-c cocoa-touch cocoa