1

I would like to determine the minimum + maximum visible latitude and longitude values in the MKMapViewDelegate delegate method:

- (void)mapView:(MKMapView *)mapView regionDidChangeAnimated:(BOOL)animated

A function like isCoordinateInRegion would come in handy.

Cheers.

petert
  • 6,672
  • 3
  • 38
  • 46
user346443
  • 4,672
  • 15
  • 57
  • 80

1 Answers1

1

You can look at MKMapRectContainsPoint. You can get the MKMapRect using visibleMapRect property of the MKMapView object and MKMapPoint using MKMapPointForCoordinate.

Deepak Danduprolu
  • 44,595
  • 12
  • 101
  • 105