iOS MKMapKit regionDidChangeAnimated
I would like to determine the minimum + maximum visible latitude and longitude val开发者_如何学Goues in the MKMapViewDelegate delegate method:
- (void)mapView:(MKMapView *)mapView regionDidChangeAnimated:(BOOL)animated
A function like isCoordinateInRegion
would come in handy.
Cheers.
You can look at MKMapRectContainsPoint
. You can get the MKMapRect
using visibleMapRect
property of the MKMapView
object and MKMapPoint
using MKMapPointForCoordinate
.
精彩评论