开发者

iPhone managedobject delete crashing

开发者 https://www.devze.com 2023-01-11 11:24 出处:网络
I try to delete some managedobjects by calling in a for loop [man开发者_如何学编程agedObject delete];

I try to delete some managedobjects by calling in a for loop

[man开发者_如何学编程agedObject delete]; 

and at of the loop, I call

[managedObjectContext save:nil];

At the above line, the app crashes and goes nowhere from there. Any ideas?

Thanks


Run in the debugger and make sure you are breaking on objc_exception_throw. If you can't catch the break point or produce a crash log you are not going to find much help here.

0

精彩评论

暂无评论...
验证码 换一张
取 消