when I try to move MKCircle in my MKMapView I get this error message: -[MKCircle setCoordinate:] unrecognized selector ..
. But according to the documentation MKCircle conforms to MKAnnotation protocol so it should have setCoordinate:
method implemented (in addition Xcode offer me autosuggestion for it and debugger doesn't show any warnings).
Does anyone know where's the problem?
Thanks a lot.
Even though MKCircle does conform to MKAnnotation, the MKCircle class then (unfortunately) overrides the coordinate property as read-only:
The simplest solution is to remove the old overlay with
removeOverlay:
and add a new one with the new center coordinate and radius.