Reputation: 4862
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.
Upvotes: 1
Views: 650
Reputation: 44633
You can look at MKMapRectContainsPoint
. You can get the MKMapRect
using visibleMapRect
property of the MKMapView
object and MKMapPoint
using MKMapPointForCoordinate
.
Upvotes: 1