MotoxX MotoxX - 1 year ago 105
iOS Question

Remove Last added annotation from MKMapView

Is there a way to remove the last added Annotation?

Answer Source

[self.mapView removeAnnotation:self.mapView.annotations.lastObject];

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download