File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
MJRefreshExample/Classes/DIY Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 11Pod ::Spec . new do |s |
22 s . name = 'MJRefresh'
3- s . version = '3.0.5 '
3+ s . version = '3.0.6 '
44 s . summary = 'An easy way to use pull-to-refresh'
55 s . homepage = 'https://github.com/CoderMJLee/MJRefresh'
66 s . license = 'MIT'
Original file line number Diff line number Diff line change @@ -109,6 +109,8 @@ - (void)setState:(MJRefreshState)state
109109 self.gifView .animationDuration = [self .stateDurations[@(state)] doubleValue ];
110110 [self .gifView startAnimating ];
111111 }
112+ } else if (state == MJRefreshStateIdle) {
113+ [self .gifView stopAnimating ];
112114 }
113115}
114116@end
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ - (void)prepare
2121 UIImage *image = [UIImage imageNamed: [NSString stringWithFormat: @" dropdown_anim__000%zd " , i]];
2222 [idleImages addObject: image];
2323 }
24- [self setImages: idleImages forState: MJRefreshStateIdle];
24+ // [self setImages:idleImages forState:MJRefreshStateIdle];
2525
2626 // 设置即将刷新状态的动画图片(一松开就会刷新的状态)
2727 NSMutableArray *refreshingImages = [NSMutableArray array ];
You can’t perform that action at this time.
0 commit comments