Enumeration

UIScrollViewContentInsetAdjustmentBehavior

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

Declaration

typedef enum UIScrollViewContentInsetAdjustmentBehavior : NSInteger {
    ...
} UIScrollViewContentInsetAdjustmentBehavior;

Topics

Enumeration Cases

UIScrollViewContentInsetAdjustmentAutomatic

Automatically adjust the scroll view insets.

UIScrollViewContentInsetAdjustmentScrollableAxes

Adjust the insets only in the scrollable directions.

UIScrollViewContentInsetAdjustmentNever

Do not adjust the scroll view insets.

UIScrollViewContentInsetAdjustmentAlways

Always include the safe area insets in the content adjustment.

See Also

Managing the Content Inset Behavior

adjustedContentInset

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

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.

adjustedContentInsetDidChange

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