Instance Property

directionalLockEnabled

A Boolean value that determines whether scrolling is disabled in a particular direction.

Declaration

@property(nonatomic, getter=isDirectionalLockEnabled) BOOL directionalLockEnabled;

Discussion

If this property is NO, scrolling is permitted in both horizontal and vertical directions. If this property is YES and the user begins dragging in one general direction (horizontally or vertically), the scroll view disables scrolling in the other direction. If the drag direction is diagonal, then scrolling will not be locked and the user can drag in any direction until the drag completes. The default value is NO

See Also

Configuring the Scroll View

scrollEnabled

A Boolean value that determines whether scrolling is enabled.

pagingEnabled

A Boolean value that determines whether paging is enabled for the scroll view.

scrollsToTop

A Boolean value that controls whether the scroll-to-top gesture is enabled.

bounces

A Boolean value that controls whether the scroll view bounces past the edge of content and back again.

alwaysBounceVertical

A Boolean value that determines whether bouncing always occurs when vertical scrolling reaches the end of the content.

alwaysBounceHorizontal

A Boolean value that determines whether bouncing always occurs when horizontal scrolling reaches the end of the content view.