Function

UIEdgeInsetsMake

Creates an edge inset for a button or view.

Declaration

UIEdgeInsets UIEdgeInsetsMake(CGFloat top, CGFloat left, CGFloat bottom, CGFloat right);

Parameters

top

The inset at the top of an object.

left

The inset on the left of an object

bottom

The inset on the bottom of an object.

right

The inset on the right of an object.

Return Value

An inset for a button or view

Discussion

An inset is a margin around a rectangle. Positive values represent margins closer to the center of the rectangle, while negative values represent margins further from the center.

See Also