diff --git a/MJRefresh/Base/MJRefreshComponent.m b/MJRefresh/Base/MJRefreshComponent.m index 1b6ea277..bdf32b9a 100644 --- a/MJRefresh/Base/MJRefreshComponent.m +++ b/MJRefresh/Base/MJRefreshComponent.m @@ -144,9 +144,12 @@ - (void)beginRefreshing if (self.window) { self.state = MJRefreshStateRefreshing; } else { - self.state = MJRefreshStateWillRefresh; - // 刷新(预防从另一个控制器回到这个控制器的情况,回来要重新刷新一下) - [self setNeedsDisplay]; + // 预发当前正在刷新中时调用本方法使得header insert回置失败 + if (self.state != MJRefreshStateRefreshing) { + self.state = MJRefreshStateWillRefresh; + // 刷新(预防从另一个控制器回到这个控制器的情况,回来要重新刷新一下) + [self setNeedsDisplay]; + } } }