Hi,
I run into a strange problem when testing on my device. The code does run great in the simulator however:
I create annotations like in the example project, with an assigned right accessory button.
When I tap it however, I get an access violation because the annotation passed to OnAnnotationRightCalloutAccessoryTapped is not a valid reference.
When tracing this back to the code, I see that the following call is made
ann := FMapView.GetAnnotation(annotationView);
This code returns an invalid ann. Tracing even further into above method reveals that
if Assigned(Annotations.AnnotationView) then
is never valid, annotationview is never assigned.
Help?
Best regards,
Jan