Skip to content

Commit

Permalink
解决菊花下拉模式在CollectionView下使用出现UI错乱的BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
xhzengAIB committed Oct 17, 2014
1 parent 74dd440 commit 552d4f3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions RefreshControl/Manager/XHRefreshControl.m
Original file line number Diff line number Diff line change
Expand Up @@ -618,8 +618,10 @@ - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(N
break;
}
case XHPullDownRefreshViewTypeActivityIndicator: {
CGFloat timeOffset = pullDownOffset / 36.0;
self.refreshActivityIndicatorContainerView.activityIndicatorView.timeOffset = timeOffset;
if (self.scrollView.contentOffset.y <= -([self getAdaptorHeight] - kXHRefreshCircleViewHeight)) {
CGFloat timeOffset = pullDownOffset / 36.0;
self.refreshActivityIndicatorContainerView.activityIndicatorView.timeOffset = timeOffset;
}
break;
}
case XHPullDownRefreshViewTypeCustom: {
Expand Down

0 comments on commit 552d4f3

Please sign in to comment.