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.

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.

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.

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.

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.

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.

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.

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.

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

Declared In

UIScrollView+Extensions.h

  isScrolling

Whether or not the UIScrollView is currently scrolling.

@property (nonatomic, readonly) BOOL isScrolling

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

Declared In

UIScrollView+Extensions.h

  contentRequiresHorizontalScrolling

Whether or not the content requires horizontal scrolling.

@property (nonatomic, readonly) BOOL contentRequiresHorizontalScrolling

Declared In

UIScrollView+Extensions.h

  contentRequiresVerticalScrolling

Whether or not the content requires vertical scrolling.

@property (nonatomic, readonly) BOOL contentRequiresVerticalScrolling

Declared In

UIScrollView+Extensions.h

  contentRequiresScrolling

Whether or not the content requires scrolling.

@property (nonatomic, readonly) BOOL contentRequiresScrolling

Declared In

UIScrollView+Extensions.h

– stopScrolling

Stops the current scrolling operation.

- (void)stopScrolling

Declared In

UIScrollView+Extensions.h