我需要对已保存并拥有最终objectIDs
的托管对象执行操作。通过完成处理程序这是一种简单的方法吗?
Utility.managedObjectContext().performBlockAndWait({
let success = Utility.managedObjectContext().save(nil)
//do some logic but only after save was completed, and managedObject owns final objectIDs
})