我在向核心數據模型中添加2個附加字段後遇到了以下錯誤。目標C:對象釋放,而關鍵值觀察者仍然在其中註冊
CarPark_CarPark_ was deallocated while key value observers were still registered with it. Observation info was leaked, and may even become mistakenly attached to some other object.
Set a breakpoint on NSKVODeallocateBreak to stop here in the debugger.
Here's the current observation info:
<NSKeyValueObservationInfo 0x1b6510> (
<NSKeyValueObservance 0x19b210: Observer: 0x1a8cf0, Key path: coordinate,
Options: <New: NO, Old: NO, Prior: YES> Context: 0x0, Property: 0x1b7e00>
)
我下一步該怎麼做有點失落。任何有關這方面的指導將非常感激!請讓我知道還有哪些其他信息是必需的。
你是否按照建議在NSKVODeallocateBreak上設置斷點?這可以幫助你找出問題的來源。 – omz 2011-05-12 19:56:25
@omz,請原諒我的無知,我該如何在NSKVODeallocateBreak上設置這個斷點? – Zhen 2011-05-13 01:55:04
我沒有在我的應用程序中設置任何oberservers。但這實際上意味着什麼? 「這是當前的觀察信息:( 上下文:0x0,屬性:0x1ac3e0> 「 –
Zhen
2011-05-13 04:26:42