From 552d4f36bd34cbcaea0d05dd3c16f8d1d5a281a9 Mon Sep 17 00:00:00 2001 From: Jack Date: Fri, 17 Oct 2014 12:58:21 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E8=8F=8A=E8=8A=B1=E4=B8=8B?= =?UTF-8?q?=E6=8B=89=E6=A8=A1=E5=BC=8F=E5=9C=A8CollectionView=E4=B8=8B?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E5=87=BA=E7=8E=B0UI=E9=94=99=E4=B9=B1?= =?UTF-8?q?=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- RefreshControl/Manager/XHRefreshControl.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/RefreshControl/Manager/XHRefreshControl.m b/RefreshControl/Manager/XHRefreshControl.m index 5f8e6cd..6c2c95d 100644 --- a/RefreshControl/Manager/XHRefreshControl.m +++ b/RefreshControl/Manager/XHRefreshControl.m @@ -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: {