Instance Property

adjustedContentInset

The insets derived from the content insets and the safe area of the scroll view.

Declaration

@property(nonatomic, readonly) UIEdgeInsets adjustedContentInset;

Discussion

Use this property to obtain the adjusted area in which to draw content. The contentInsetAdjustmentBehavior property determines whether the safe area insets are included in the adjustment. The safe area insets are then added to the values in the contentInset property to obtain the final value of this property.

See Also

Managing the Content Inset Behavior

contentInset

The custom distance that the content view is inset from the safe area or scroll view edges.

contentInsetAdjustmentBehavior

The behavior for determining the adjusted content offsets.

UIScrollViewContentInsetAdjustmentBehavior

Constants indicating how safe area insets are added to the adjusted content inset.

- adjustedContentInsetDidChange

Called when the adjusted content insets of the scroll view change.