Instance Method

initWithSize:

Initializes a new region with a rectangular area.

Declaration

- (instancetype)initWithSize:(CGSize)size;

Parameters

size

The size of the rectangle in points.

Return Value

A newly initialized region. The region is rectangular and centered on the origin.

See Also

Creating and Initializing Region Objects

+ infiniteRegion

Returns a region that defines a region that includes all points.

- initWithRadius:

Initializes a new region with a circular area.

- initWithPath:

Initializes a new region using a Core Graphics path.

- inverseRegion

Returns a new region that is the mathematical inverse of an existing region.

- regionByDifferenceFromRegion:

Returns a new region created by subtracting the contents of another region from this region.

- regionByIntersectionWithRegion:

Returns a new region created by intersecting the contents of this region with another region.

- regionByUnionWithRegion:

Returns a new region created by combining the contents of this region with another region.