0

含むクラスがあります

.h ファイル。

@interface NewsItem : NSObject
{
NSString* _newsID;
NSString* _newsTitle;
NSString* _imageURL;
NSString* _description;
}
 @property (nonatomic, copy)   NSString* newsID;
 @property (nonatomic, retain) NSString* newsTitle;
 @property (nonatomic, copy)   NSString* imageURL;
 @property (nonatomic, copy)   NSString* description;

.m ファイル

 @implementation NewsItem
 @synthesize newsID= _newsID;
 @synthesize newsTitle= _newsTitle;
 @synthesize imageURL = _imageURL;
 @synthesize description= _description;

ブレークポイントから newsItem のオブジェクトを出力するたびに、オブジェクト参照アドレスの代わりに説明フィールドの値が表示されます。なんでそうなの ?

助けてください、よろしくお願いします。

4

1 に答える 1