Skip to content

Instantly share code, notes, and snippets.

@623637646
Last active November 4, 2019 08:14
Show Gist options
  • Save 623637646/5bfd51ffa340331208b6dfed65e75b37 to your computer and use it in GitHub Desktop.
Save 623637646/5bfd51ffa340331208b6dfed65e75b37 to your computer and use it in GitHub Desktop.
CoreData Object release 行为
Context不保存,NSManagedObject都不释放
NSManagedObject没有循环引用,只要Context保存,就释放
NSManagedObject存在循环引用,必须Context reset,才会释放
可以写个test case
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment