Iphone Core Data crashing on Save

前端 未结 7 723
执念已碎
执念已碎 2020-12-03 06:01

I\'m currently writing an Iphone application using Core Data and I get a EXC_BAD_ACCESS error during the [managedObjectContext save:&&error] code line.

相关标签:
7条回答
  • 2020-12-03 06:27

    I know this is an oldie but I had the same issue so thought I'd add my tuppence as to how I solved the issue, mine was caused by manually releasing the managed object within the modal view, I removed the release calls and everything is working fine :) according to the docs you shouldn't manually try and release managed objects anyway as the context will look after all of that. That's my experience anyway, search through your code for over-released values.

    0 讨论(0)
提交回复
热议问题