开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜