user346443
user346443

Reputation: 4862

iOS MKMapKit regionDidChangeAnimated

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

Answers (1)

Deepak Danduprolu
Deepak Danduprolu

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

Related Questions