We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a21893d + d2670fc commit 654c08fCopy full SHA for 654c08f
MJRefresh/Base/MJRefreshComponent.m
@@ -144,9 +144,12 @@ - (void)beginRefreshing
144
if (self.window) {
145
self.state = MJRefreshStateRefreshing;
146
} else {
147
- self.state = MJRefreshStateWillRefresh;
148
- // 刷新(预防从另一个控制器回到这个控制器的情况,回来要重新刷新一下)
149
- [self setNeedsDisplay];
+ // 预发当前正在刷新中时调用本方法使得header insert回置失败
+ if (self.state != MJRefreshStateRefreshing) {
+ self.state = MJRefreshStateWillRefresh;
150
+ // 刷新(预防从另一个控制器回到这个控制器的情况,回来要重新刷新一下)
151
+ [self setNeedsDisplay];
152
+ }
153
}
154
155
0 commit comments