Skip to content

Commit

Permalink
Syntax cleanup and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ignacio Romero Zurbuchen committed Apr 22, 2016
1 parent b56f25b commit 34f4fa5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
9 changes: 4 additions & 5 deletions Source/UIScrollView+EmptyDataSet.h
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,10 @@
- (BOOL)emptyDataSetShouldFadeIn:(UIScrollView *)scrollView;

/**
* Ask the delegate to know if the empty dataset should be forced to render and display when items count is more than 0. Default is NO
*
* @param scrollView scrollView A scrollView subclass object informing the delegate.
*
* @return YES if empty dataset should be forced to display
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
@param scrollView A scrollView subclass object informing the delegate.
@return YES if empty dataset should be forced to display
*/
- (BOOL)emptyDataSetShouldBeForcedToDisplay:(UIScrollView *)scrollView;

Expand Down
4 changes: 2 additions & 2 deletions Source/UIScrollView+EmptyDataSet.m
Original file line number Diff line number Diff line change
Expand Up @@ -301,11 +301,11 @@ - (BOOL)dzn_shouldDisplay
return YES;
}

- (BOOL)dzn_shouldBeForcedToDisplay {
- (BOOL)dzn_shouldBeForcedToDisplay
{
if (self.emptyDataSetDelegate && [self.emptyDataSetDelegate respondsToSelector:@selector(emptyDataSetShouldBeForcedToDisplay:)]) {
return [self.emptyDataSetDelegate emptyDataSetShouldBeForcedToDisplay:self];
}

return NO;
}

Expand Down

0 comments on commit 34f4fa5

Please sign in to comment.