MapView, MKAnnotation & Key-Value-Observing - error message

Today I had an error with an explanation :) There is only one problem: I do not understand it :( So what am I doing wrong when I get this error?

2012-04-30 03:04:35.737 Barz[21961:11903] An instance 0x7491960 of class BarAnnotation 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 the current observation info:
    <NSKeyValueObservationInfo 0x74a18b0> (
    <NSKeyValueObservance 0x74a1700: Observer: 0x747f2b0, Key path: coordinate, Options: <New: NO, Old: NO, Prior: YES> Context: 0x0, Property: 0x74a11c0>
    )

Not that I didn’t add any observer manually, am I just deleting and adding “BarAnnotation” (my regular MKAnnotation) to my mapView in the viewWillAppear method? I'm also not quite sure if I understood who is watching whom: is my mapView watching all MKnnotations? Or my observer mapViewController (== mapView)? And why does it behave like this if I turned off drag and drop?

Hope someone can help me and answer some of these questions :)

+5
source share
1 answer

, , . ?

+3

All Articles