Fix refresh control

This commit is contained in:
Steven Zweier 2016-02-22 16:33:09 -05:00
parent 192075bf3d
commit 15bd513774
1 changed files with 4 additions and 4 deletions

View File

@ -19,10 +19,10 @@
- (CGFloat)updateLayoutIfNeeded - (CGFloat)updateLayoutIfNeeded
{ {
if (self.scrollView.contentSize.height < FLT_EPSILON if ((self.scrollView.contentSize.height < FLT_EPSILON
&& ([self.scrollView isKindOfClass:[UITableView class]] && ([self.scrollView isKindOfClass:[UITableView class]]
|| [self.scrollView isKindOfClass:[UICollectionView class]]) || [self.scrollView isKindOfClass:[UICollectionView class]])
) ) || (self.scrollView.contentOffset.y <= -64))
{ {
return 0.f; return 0.f;
} }