我有这堂课:
@interface RSSEntry : NSObject{ NSString *blogTitle; NSString *articleTitle; NSString *articleUrl; NSDate *articleDate; } @property (copy) NSString *blogTitle; @property (copy) NSString *articleTitle; @property (copy) NSString *articleUrl; @property (copy) NSDate *articleDate; @end
现在,在创建对象时,如何使这些成员变量初始化,尤其是在Xcode项目中启用ARC时?我是Objective-C的新手;我正在寻找类似C语言的构造函数.