PFObject 作为 MKAnnotation 导致 NSInternalInconsistencyException

PFObject as MKAnnotation causes NSInternalInconsistencyException

我有一个符合 MKAnnotation 的 PFObject 子类,它可以很好地向地图视图添加注释,并开始拖动注释,但是一旦我停止拖动,应用程序就会崩溃,出现以下异常:

NSInternalInconsistencyException', reason: 'Getter should take no arguments!

我已将崩溃追踪到 [PFObject forwardInvocation],这会导致 [PFObjectSubclassingController _forwardGetterInvocation:forProperty:withObject:],但我无法弄清楚是什么调用了 forwardInvocation。

有人有什么想法吗?

发现问题...我需要在自定义 class 中声明一个 setCoordinate:(CLLocationCoordinate2D)newCoordinate 方法。哎呀