Function

MKMapRectContainsRect

Returns Boolean value indicating whether one rectangle contains another.

Declaration

BOOL MKMapRectContainsRect(MKMapRect rect1, MKMapRect rect2);

Parameters

rect1

The containing rectangle.

rect2

The rectangle that might be contained in rect1.

Return Value

YES if rect2 is null or lies entirely inside rect1; otherwise, returns NO if rect1 is null or does not completely enclose rect2.

See Also

Intersecting the Rectangle

MKMapRectContainsPoint

Returns a Boolean value indicating whether the specified map point lies within the rectangle.

MKMapRectIntersectsRect

Returns a Boolean value indicating whether two rectangles intersect each other.