From e7bc1ed7012b09538bf797da5e421872d9e869a8 Mon Sep 17 00:00:00 2001 From: Aleh Dzenisiuk Date: Tue, 6 Aug 2013 11:55:50 +0200 Subject: [PATCH] Fixed a bug with calling beginRefresh and then endRefresh preventing the first manual pull to refresh afterwards. --- ODRefreshControl/ODRefreshControl.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ODRefreshControl/ODRefreshControl.m b/ODRefreshControl/ODRefreshControl.m index 362e61c..7daad64 100644 --- a/ODRefreshControl/ODRefreshControl.m +++ b/ODRefreshControl/ODRefreshControl.m @@ -424,7 +424,10 @@ - (void)beginRefreshing - (void)endRefreshing { if (_refreshing) { + self.refreshing = NO; + _canRefresh = YES; + // Create a temporary retain-cycle, so the scrollView won't be released // halfway through the end animation. // This allows for the refresh control to clean up the observer,