DZNEmptyDataSetDelegate Protocol Reference

Conforms to NSObject
Declared in UIScrollView+EmptyDataSet.h

Overview

The object that acts as the delegate of the empty datasets.

The delegate can adopt the DZNEmptyDataSetDelegate protocol. The delegate is not retained. All delegate methods are optional.

All delegate methods are optional. Use this delegate for receiving action callbacks.

– emptyDataSetShouldFadeIn:

Asks the delegate to know if the empty dataset should fade in when displayed. Default is YES.

- (BOOL)emptyDataSetShouldFadeIn:(UIScrollView *)scrollView

Parameters

scrollView

A scrollView subclass object informing the delegate.

Return Value

YES if the empty dataset should fade in.

Discussion

Asks the delegate to know if the empty dataset should fade in when displayed. Default is YES.

Declared In

UIScrollView+EmptyDataSet.h

– emptyDataSetShouldBeForcedToDisplay:

Asks the delegate to know if the empty dataset should still be displayed when the amount of items is more than 0. Default is NO

- (BOOL)emptyDataSetShouldBeForcedToDisplay:(UIScrollView *)scrollView

Parameters

scrollView

A scrollView subclass object informing the delegate.

Return Value

YES if empty dataset should be forced to display

Discussion

Asks the delegate to know if the empty dataset should still be displayed when the amount of items is more than 0. Default is NO

Declared In

UIScrollView+EmptyDataSet.h

– emptyDataSetShouldDisplay:

Asks the delegate to know if the empty dataset should be rendered and displayed. Default is YES.

- (BOOL)emptyDataSetShouldDisplay:(UIScrollView *)scrollView

Parameters

scrollView

A scrollView subclass object informing the delegate.

Return Value

YES if the empty dataset should show.

Discussion

Asks the delegate to know if the empty dataset should be rendered and displayed. Default is YES.

Declared In

UIScrollView+EmptyDataSet.h

– emptyDataSetShouldAllowTouch:

Asks the delegate for touch permission. Default is YES.

- (BOOL)emptyDataSetShouldAllowTouch:(UIScrollView *)scrollView

Parameters

scrollView

A scrollView subclass object informing the delegate.

Return Value

YES if the empty dataset receives touch gestures.

Discussion

Asks the delegate for touch permission. Default is YES.

Declared In

UIScrollView+EmptyDataSet.h

– emptyDataSetShouldAllowScroll:

Asks the delegate for scroll permission. Default is NO.

- (BOOL)emptyDataSetShouldAllowScroll:(UIScrollView *)scrollView

Parameters

scrollView

A scrollView subclass object informing the delegate.

Return Value

YES if the empty dataset is allowed to be scrollable.

Discussion

Asks the delegate for scroll permission. Default is NO.

Declared In

UIScrollView+EmptyDataSet.h

– emptyDataSetShouldAnimateImageView:

Asks the delegate for image view animation permission. Default is NO. Make sure to return a valid CAAnimation object from imageAnimationForEmptyDataSet:

- (BOOL)emptyDataSetShouldAnimateImageView:(UIScrollView *)scrollView

Parameters

scrollView

A scrollView subclass object informing the delegate.

Return Value

YES if the empty dataset is allowed to animate

Discussion

Asks the delegate for image view animation permission. Default is NO. Make sure to return a valid CAAnimation object from imageAnimationForEmptyDataSet:

Declared In

UIScrollView+EmptyDataSet.h

– emptyDataSetDidTapView:DZNEmptyDataSetDeprecated:

Tells the delegate that the empty dataset view was tapped. Use this method either to resignFirstResponder of a textfield or searchBar.

- (void)emptyDataSetDidTapView:(UIScrollView *)scrollView DZNEmptyDataSetDeprecated

Parameters

scrollView

A scrollView subclass informing the delegate.

Discussion

Tells the delegate that the empty dataset view was tapped. Use this method either to resignFirstResponder of a textfield or searchBar.

Declared In

UIScrollView+EmptyDataSet.h

– emptyDataSetDidTapButton:DZNEmptyDataSetDeprecated:

Tells the delegate that the action button was tapped.

- (void)emptyDataSetDidTapButton:(UIScrollView *)scrollView DZNEmptyDataSetDeprecated

Parameters

scrollView

A scrollView subclass informing the delegate.

Discussion

Tells the delegate that the action button was tapped.

Declared In

UIScrollView+EmptyDataSet.h

– emptyDataSet:didTapView:

Tells the delegate that the empty dataset view was tapped. Use this method either to resignFirstResponder of a textfield or searchBar.

- (void)emptyDataSet:(UIScrollView *)scrollView didTapView:(UIView *)view

Parameters

scrollView

A scrollView subclass informing the delegate.

view

the view tapped by the user

Discussion

Tells the delegate that the empty dataset view was tapped. Use this method either to resignFirstResponder of a textfield or searchBar.

Declared In

UIScrollView+EmptyDataSet.h

– emptyDataSet:didTapButton:

Tells the delegate that the action button was tapped.

- (void)emptyDataSet:(UIScrollView *)scrollView didTapButton:(UIButton *)button

Parameters

scrollView

A scrollView subclass informing the delegate.

button

the button tapped by the user

Discussion

Tells the delegate that the action button was tapped.

Declared In

UIScrollView+EmptyDataSet.h

– emptyDataSetWillAppear:

Tells the delegate that the empty data set will appear.

- (void)emptyDataSetWillAppear:(UIScrollView *)scrollView

Parameters

scrollView

A scrollView subclass informing the delegate.

Discussion

Tells the delegate that the empty data set will appear.

Declared In

UIScrollView+EmptyDataSet.h

– emptyDataSetDidAppear:

Tells the delegate that the empty data set did appear.

- (void)emptyDataSetDidAppear:(UIScrollView *)scrollView

Parameters

scrollView

A scrollView subclass informing the delegate.

Discussion

Tells the delegate that the empty data set did appear.

Declared In

UIScrollView+EmptyDataSet.h

– emptyDataSetWillDisappear:

Tells the delegate that the empty data set will disappear.

- (void)emptyDataSetWillDisappear:(UIScrollView *)scrollView

Parameters

scrollView

A scrollView subclass informing the delegate.

Discussion

Tells the delegate that the empty data set will disappear.

Declared In

UIScrollView+EmptyDataSet.h

– emptyDataSetDidDisappear:

Tells the delegate that the empty data set did disappear.

- (void)emptyDataSetDidDisappear:(UIScrollView *)scrollView

Parameters

scrollView

A scrollView subclass informing the delegate.

Discussion

Tells the delegate that the empty data set did disappear.

Declared In

UIScrollView+EmptyDataSet.h