更新时间:2022-12-30 18:01:13
。查找您的最大和最小纬度和经度,应用一些简单的算术,并使用 MKCoordinateRegionMake
。
You've got it right. Find your maximum and minimum latitudes and longitudes, apply some simple arithmetic, and use MKCoordinateRegionMake
.
(参考MKMapView.h)://定位地图,使得提供的注释数组尽可能全部可见。
For iOS 7 and above (Referring MKMapView.h) : // Position the map such that the provided array of annotations are all visible to the fullest extent possible.
- (void)showAnnotations:(NSArray *)annotations animated:(BOOL)animated NS_AVAILABLE(10_9,7_0);