Instance Property

clipsToBounds

A Boolean value that determines whether subviews are confined to the bounds of the view.

Declaration

@property(nonatomic) BOOL clipsToBounds;

Discussion

Setting this value to YES causes subviews to be clipped to the bounds of the receiver. If set to NO, subviews whose frames extend beyond the visible bounds of the receiver are not clipped. The default value is NO.

See Also

Configuring a View’s Visual Appearance

backgroundColor

The view’s background color.

hidden

A Boolean value that determines whether the view is hidden.

alpha

The view’s alpha value.

opaque

A Boolean value that determines whether the view is opaque.

tintColor

The first nondefault tint color value in the view’s hierarchy, ascending from and starting with the view itself.

tintAdjustmentMode

The first non-default tint adjustment mode value in the view’s hierarchy, ascending from and starting with the view itself.

clearsContextBeforeDrawing

A Boolean value that determines whether the view’s bounds should be automatically cleared before drawing.

maskView

An optional view whose alpha channel is used to mask a view’s content.

layerClass

Returns the class used to create the layer for instances of this class.

layer

The view’s Core Animation layer used for rendering.