Objective C:Object Deallocated while key value observers were still registered with it

后端 未结 2 447
南旧
南旧 2020-12-28 17:36

I am hitting the below error after I added 2 additional fields to my core data model.

CarPark_CarPark_ was deallocated while key value observers were still r         


        
2条回答
  •  清歌不尽
    2020-12-28 18:22

    It's probably due to the observer being deallocated before the objects being observed. You would need to implement the -(void) dealloc method to remove all observed objects in the observer.

提交回复
热议问题