Function

CGRectGetMidY

Returns the y-coordinate that establishes the center of the rectangle.

Declaration

CGFloat CGRectGetMidY(CGRect rect);

Parameters

rect

The rectangle to examine.

Return Value

The y-coordinate of the center of the specified rectangle.

See Also

Getting Min, Mid, and Max Values

CGRectGetMinX

Returns the smallest value for the x-coordinate of the rectangle.

CGRectGetMinY

Returns the smallest value for the y-coordinate of the rectangle.

CGRectGetMidX

Returns the x- coordinate that establishes the center of a rectangle.

CGRectGetMaxX

Returns the largest value of the x-coordinate for the rectangle.

CGRectGetMaxY

Returns the largest value for the y-coordinate of the rectangle.