Instance Method

convertPoint:toCoordinateFromView:

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

Declaration

iOS, Mac Catalyst, tvOS
- (CLLocationCoordinate2D)convertPoint:(CGPoint)point toCoordinateFromView:(UIView *)view;
macOS
- (CLLocationCoordinate2D)convertPoint:(CGPoint)point toCoordinateFromView:(NSView *)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.

See Also

Converting Map Coordinates

- convertCoordinate:toPointToView:

Converts a map coordinate to a point in the specified view.

- convertRegion:toRectToView:

Converts a map region to a rectangle in the specified view.

- convertRect:toRegionFromView:

Converts a rectangle in the specified view’s coordinate system to a map region.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software