开发者

iOS MKMapKit regionDidChangeAnimated

开发者 https://www.devze.com 2023-03-11 23:29 出处:网络
I would like to determine the minimum + maximum visible latitude and longitude val开发者_如何学Goues in the MKMapViewDelegate delegate method:

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消