Instance Method

convertPoint:fromView:

Converts a point from the coordinate system of a given view to that of the receiver.

Declaration

- (CGPoint)convertPoint:(CGPoint)point fromView:(UIView *)view;

Parameters

point

A point specified in the local coordinate system (bounds) of view.

view

The view with point in its coordinate system. If view is nil, this method instead converts from window base coordinates. Otherwise, both view and the receiver must belong to the same UIWindow object.

Return Value

The point converted to the local coordinate system (bounds) of the receiver.

See Also

Converting Between View Coordinate Systems

- convertPoint:toView:

Converts a point from the receiver’s coordinate system to that of the specified view.

- convertRect:toView:

Converts a rectangle from the receiver’s coordinate system to that of another view.

- convertRect:fromView:

Converts a rectangle from the coordinate system of another view to that of the receiver.