2012-04-30 14 views
5

今日私は説明でエラーが発生しました:)問題は1つだけです:私はそれを理解していません。私は理解している場合、私は、手動で任意のオブザーバーを追加していない私は削除して、方法viewWillAppearで私のMapViewに「BarAnnotation」(私のカスタムMKAnnotation)を追加することをMapView、MKAnnotation&Key-Value-Observing - エラーメッセージ

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's the current observation info: 
    <NSKeyValueObservationInfo 0x74a18b0> (
    <NSKeyValueObservance 0x74a1700: Observer: 0x747f2b0, Key path: coordinate, Options: <New: NO, Old: NO, Prior: YES> Context: 0x0, Property: 0x74a11c0> 
    ) 

しませんか? また、私はかなりよく分からない人私のmapViewはすべてのMKAnnotationsを観察していますか?またはmapViewController(== mapViewのデリゲート)が監視していますか?そして、ドラッグを無効にした場合、それはなぜそんなふうに動作しますか?

誰かが私を助け、これらの質問のいくつかに答えることを願ってください:)

+0

注釈をドラッグできるようにしましたか? – nverinaud

答えて

3

私は、注釈の座標が無効であるときにこれが起こるのを見ました。あなたはそれを確認しましたか?

+0

実際、私の場合、経度「ナノ」の注釈がクラッシュを引き起こしていました。 – samvermette