Instance Method

convertRect:fromWindow:

Converts a rectangle from the coordinate system of another window to coordinate system of the current window.

Declaration

- (CGRect)convertRect:(CGRect)rect fromWindow:(UIWindow *)window;

Parameters

rect

A rectangle in the coordinate system of window.

window

The source window containing the specified rect. Specify nil to convert the rectangle from the logical coordinate system of the screen, which is measured in points.

Return Value

The converted rectangle.

See Also

Converting Coordinates

- convertPoint:toWindow:

Converts a point from the current window’s coordinate system to the coordinate system of another window.

- convertPoint:fromWindow:

Converts a point from the coordinate system of a given window to the coordinate system of the current window.

- convertRect:toWindow:

Converts a rectangle from the current window’s coordinate system to the coordinate system of another window.

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