标签:invalid region ios 地图定位 出错
MKCoordinateRegion region = MKCoordinateRegionMake(_currentLocationCoordinate, MKCoordinateSpanMake(zoomLevel, zoomLevel)); [_mapView setRegion:[_mapView regionThatFits:region] animated:YES];
if ( (region.center.latitude >= -90) && (region.center.latitude <= 90) && (region.center.longitude >= -180) && (region.center.longitude <= 180) ){ [_mapView setRegion:[_mapView regionThatFits:region] animated:YES]; } else{ NSLog(@"invilid region"); }
版权声明:本文为博主原创文章,未经博主允许不得转载。
地图定位出错Exception : 'Invalid Region
标签:invalid region ios 地图定位 出错
原文地址:http://blog.csdn.net/jueyi1127/article/details/47045435