UIScrollView(Extensions) Category Reference

Declared in UIScrollView+Extensions.h

Overview

UIScrollView extension methods.

– scrollToView:animated:completion:

Scroll to reveal the given view and it’s managed tooltip if it has one.

- (void)scrollToView:(nonnull UIView *)view animated:(BOOL)animated completion:(nullable dispatch_block_t)completion

Parameters

view

The view to reveal.

animated

Whether or not to animate the scroll.

completion

An optional block to be called when the scroll is complete.

Discussion

Scroll to reveal the given view and it’s managed tooltip if it has one.

Declared In

UIScrollView+Extensions.h

– heirarchyContentSize

Gets the content size of the top-level UIScrollView in the view heirarchy.

- (CGSize)heirarchyContentSize

Return Value

The CGSize value.

Discussion

Gets the content size of the top-level UIScrollView in the view heirarchy.

Declared In

UIScrollView+Extensions.h

– contentOffsetAtTopLeft

Gets the content offset at the top left of the content, taking into account bounds and insets.

- (CGPoint)contentOffsetAtTopLeft

Return Value

The calculated content offset.

Discussion

Gets the content offset at the top left of the content, taking into account bounds and insets.

Declared In

UIScrollView+Extensions.h

– contentOffsetAtBottomRight

Gets the content offset at the bottom right of the content, taking into account bounds and insets.

- (CGPoint)contentOffsetAtBottomRight

Return Value

The calculated content offset.

Discussion

Gets the content offset at the bottom right of the content, taking into account bounds and insets.

Declared In

UIScrollView+Extensions.h

– scrollPositionIsOverflowingAtTop

Whether or not the current scroll position is overflowing (bouncing) at the top.

- (BOOL)scrollPositionIsOverflowingAtTop

Return Value

The result.

Discussion

Whether or not the current scroll position is overflowing (bouncing) at the top.

Declared In

UIScrollView+Extensions.h

– scrollPositionIsOverflowingAtLeft

Whether or not the current scroll position is overflowing (bouncing) at the left.

- (BOOL)scrollPositionIsOverflowingAtLeft

Return Value

The result.

Discussion

Whether or not the current scroll position is overflowing (bouncing) at the left.

Declared In

UIScrollView+Extensions.h

– scrollPositionIsOverflowingAtBottom

Whether or not the current scroll position is overflowing (bouncing) at the bottom.

- (BOOL)scrollPositionIsOverflowingAtBottom

Return Value

The result.

Discussion

Whether or not the current scroll position is overflowing (bouncing) at the bottom.

Declared In

UIScrollView+Extensions.h

– scrollPositionIsOverflowingAtRight

Whether or not the current scroll position is overflowing (bouncing) at the right.

- (BOOL)scrollPositionIsOverflowingAtRight

Return Value

The result.

Discussion

Whether or not the current scroll position is overflowing (bouncing) at the right.

Declared In

UIScrollView+Extensions.h

  keyScrollView

The closest ancestor scroll view in the view heirarchy that is the key (scrolling) UIScrollView.

@property (nonatomic, readonly, nullable) UIScrollView *keyScrollView

Discussion

The closest ancestor scroll view in the view heirarchy that is the key (scrolling) UIScrollView.

Declared In

UIScrollView+Extensions.h

  isScrolling

Whether or not the UIScrollView is currently scrolling.

@property (nonatomic, readonly) BOOL isScrolling

Discussion

Whether or not the UIScrollView is currently scrolling.

Declared In

UIScrollView+Extensions.h

  isScrollingIncludingSuperviews

Whether or not this UIScrollView is scrolling or is a part of currently scrolling content in a parent UIScrollView.

@property (nonatomic, readonly) BOOL isScrollingIncludingSuperviews

Discussion

Whether or not this UIScrollView is scrolling or is a part of currently scrolling content in a parent UIScrollView.

Declared In

UIScrollView+Extensions.h

  contentRequiresHorizontalScrolling

Whether or not the content requires horizontal scrolling.

@property (nonatomic, readonly) BOOL contentRequiresHorizontalScrolling

Discussion

Whether or not the content requires horizontal scrolling.

Declared In

UIScrollView+Extensions.h

  contentRequiresVerticalScrolling

Whether or not the content requires vertical scrolling.

@property (nonatomic, readonly) BOOL contentRequiresVerticalScrolling

Discussion

Whether or not the content requires vertical scrolling.

Declared In

UIScrollView+Extensions.h

  contentRequiresScrolling

Whether or not the content requires scrolling.

@property (nonatomic, readonly) BOOL contentRequiresScrolling

Discussion

Whether or not the content requires scrolling.

Declared In

UIScrollView+Extensions.h

– stopScrolling

Stops the current scrolling operation.

- (void)stopScrolling

Discussion

Stops the current scrolling operation.

Declared In

UIScrollView+Extensions.h