NSEntityDescription 创建 NSEntityDescription 对象和NSManagedObject 对象

来源:互联网 发布:cadseeplus是什么软件 编辑:程序博客网 时间:2024/06/05 16:05
NSEntityDescription *entity = [NSEntityDescription entityForName:@"Organization"➥
inManagedObjectContext:managedObjectContext];
NSManagedObject *org = [NSEntityDescription insertNewObjectForEntityForName:[entity➥
name] inManagedObjectContext:managedObjectContext];
0 0