MotoxX MotoxX - 2 years ago 131
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