iOS MKMapView Adjust the map view's visible rect in order to display all annotations


Example

Swift:

mapView.showAnnotations(mapView.annotations, animated: true)

Objective-C:

[mapView showAnnotations:mapView.annotations animated:YES];

Demo:

enter image description here