Skip to content

Commit 817a833

Browse files
committed
gif header without images for stateidle
gif header without images for stateidle
1 parent 6234b9f commit 817a833

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

MJRefresh.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::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'

MJRefresh/Custom/Header/MJRefreshGifHeader.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

MJRefreshExample/Classes/DIY/MJChiBaoZiHeader.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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];

0 commit comments

Comments
 (0)