Commit ce2f5eb2 authored by MJLee's avatar MJLee
Browse files

little problem

little problem
parent 5a742d55
Showing with 5 additions and 1 deletion
+5 -1
Pod::Spec.new do |s|
s.name = "MJRefresh"
s.version = "2.0.3"
s.version = "2.0.4"
s.summary = "The easiest way to use pull-to-refresh"
s.homepage = "https://github.com/CoderMJLee/MJRefresh"
s.license = "MIT"
......
......@@ -67,6 +67,9 @@
[UIView animateWithDuration:MJRefreshSlowAnimationDuration animations:^{
self.loadingView.alpha = 0.0;
} completion:^(BOOL finished) {
// 如果执行完动画发现不是idle状态,就直接返回,进入其他状态
if (self.state != MJRefreshStateIdle) return;
self.loadingView.alpha = 1.0;
[self.loadingView stopAnimating];
self.arrowView.hidden = NO;
......@@ -85,6 +88,7 @@
self.arrowView.transform = CGAffineTransformMakeRotation(0.000001 - M_PI);
}];
} else if (state == MJRefreshStateRefreshing) {
self.loadingView.alpha = 1.0; // 防止refreshing -> idle的动画完毕动作没有被执行
[self.loadingView startAnimating];
self.arrowView.hidden = YES;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment