UIScrollView(ADKPullToRefreshView) Category Reference

Declared in UIScrollView+ADKPullToRefreshView.h
UIScrollView+ADKPullToRefreshView.m

– ADKAddPullToRefreshWithHandleView:actionHandler:

Add a pull to refresh view at scrollview content view top, when pull to refresh trigger, actionHandler will be triggered.

- (void)ADKAddPullToRefreshWithHandleView:(UIView<ADKPullToRefreshViewProtocol> *)refreshHandleView actionHandler:(void ( ^ ) ( void ))actionHandler

Parameters

refreshHandleView

A UIView should conform ADKPullToRefreshViewProtocol

actionHandler

Block will invoke while pull to refresh triggered

Declared In

UIScrollView+ADKPullToRefreshView.h

– ADKTriggerPullToRefresh

Programmatically trigger pull to refresh, will invoke actionHandler.

- (void)ADKTriggerPullToRefresh

Declared In

UIScrollView+ADKPullToRefreshView.h

  pullToRefreshContentView

Deal animation and infinite scrolling state. Please reference Class ADKPullToRefreshContentView.

@property (nonatomic, readonly) ADKPullToRefreshContentView *pullToRefreshContentView

Declared In

UIScrollView+ADKPullToRefreshView.h

  showPullToRefresh

Change content size to make refreshHandleView visiable or not.

@property (nonatomic, assign) BOOL showPullToRefresh

Declared In

UIScrollView+ADKPullToRefreshView.h

  pullToRefreshContentViewBottomMargin

The distance between the bottom of pullToRefreshContentView and the top value of contentInset. The default value is 0. This method should be set after -addPullToRefreshWithHandleView:actionHandler: is invoked.

@property (nonatomic, assign) CGFloat pullToRefreshContentViewBottomMargin

Declared In

UIScrollView+ADKPullToRefreshView.h