开发者

How to calculate MKMapView area?

I know the center coordinate (latitude, longitude). How 开发者_运维技巧to calculate top left coordinate and bottom right coordinate ?


did you try

– convertPoint:toCoordinateFromView:

convertPoint:toCoordinateFromView: Converts a point in the specified view’s coordinate system to a map coordinate.

  • (CLLocationCoordinate2D)convertPoint:(CGPoint)point toCoordinateFromView:(UIView *)view Parameters point The point you want to convert. view The view that serves as the reference coordinate system for the point parameter. Return Value The map coordinate at the specified point.

Availability Available in iOS 3.0 and later. Declared In MKMapView.h

shani

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜