我有以下代码:
...
item.id_message = i.id_message;
item.ref_id = i.ref_id;
item.datetime_creation = i.datetime_creation;
[self saveContextAndWait];
NSManagedObjectID *moid = [item objectID];
如何检索新插入记录的ID?