MapView in iOS6 won't show certain zoom levels at latitude > 75 north MapView in iOS6 won't show certain zoom levels at latitude > 75 north ios ios

MapView in iOS6 won't show certain zoom levels at latitude > 75 north


CLLocationDistance visibleDistance = 100000; // 100 kilometersMKCoordinateRegion region = MKCoordinateRegionMakeWithDistance(location, visibleDistance, visibleDistance);MKCoordinateRegion adjustedRegion = [mapView regionThatFits:region];...[mapView setRegion:adjustedRegion animated:NO];

It will work..


CLLocationCoordinate2D southwest, northeast;southwest.latitude = 34.172684;southwest.longitude = -118.604794;northeast.latitude = 34.236144;northeast.longitude = -118.500938;BSForwardGeocoderCoordinateBounds *bounds = [BSForwardGeocoderCoordinateBounds boundsWithSouthWest:southwest northEast:northeast];

try this....


I was having crashes with my iPhone4S and console revealed nan values for region. After trying about 7 different solutions from SO and various suggestions from Apple DTS, I solved it by eliminating the regionThatFits call. I simply used:

CLLocationDistance visibleDistance = 100000; // 100 kilometersMKCoordinateRegion adjustedRegion = MKCoordinateRegionMakeWithDistance(zoomLocation, visibleDistance, visibleDistance);[_mapView setRegion:adjustedRegion animated:YES];

Apparently there is a problem with that regionThatFits method.