开发者

core data update question

开发者 https://www.devze.com 2023-02-20 18:44 出处:网络
I have the following class in core data @class Studies; @interface Seriese :开发者_高级运维NSManagedObject

I have the following class in core data

@class Studies;

@interface Seriese :  开发者_高级运维NSManagedObject  
{
}

@property (nonatomic, retain) NSString * SereiesID;
@property (nonatomic, retain) NSString *Series_Description;
@property (nonatomic, retain) NSDate *Series_Date;

@end

how to update the Series_Description field please

best regards


You update it just as you would any other property, by assigning to the property or by calling the setSeries_Description: method. Then make sure to call save: on the corresponding NSManagedObjectContext at some point so the changes are actually saved to the data store.

0

精彩评论

暂无评论...
验证码 换一张
取 消