Skip to content

Commit

Permalink
gif header without images for stateidle
Browse files Browse the repository at this point in the history
gif header without images for stateidle
  • Loading branch information
CoderMJLee committed Nov 26, 2015
1 parent 6234b9f commit 817a833
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MJRefresh.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'MJRefresh'
s.version = '3.0.5'
s.version = '3.0.6'
s.summary = 'An easy way to use pull-to-refresh'
s.homepage = 'https://github.com/CoderMJLee/MJRefresh'
s.license = 'MIT'
Expand Down
2 changes: 2 additions & 0 deletions MJRefresh/Custom/Header/MJRefreshGifHeader.m
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ - (void)setState:(MJRefreshState)state
self.gifView.animationDuration = [self.stateDurations[@(state)] doubleValue];
[self.gifView startAnimating];
}
} else if (state == MJRefreshStateIdle) {
[self.gifView stopAnimating];
}
}
@end
2 changes: 1 addition & 1 deletion MJRefreshExample/Classes/DIY/MJChiBaoZiHeader.m
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ - (void)prepare
UIImage *image = [UIImage imageNamed:[NSString stringWithFormat:@"dropdown_anim__000%zd", i]];
[idleImages addObject:image];
}
[self setImages:idleImages forState:MJRefreshStateIdle];
// [self setImages:idleImages forState:MJRefreshStateIdle];

// 设置即将刷新状态的动画图片(一松开就会刷新的状态)
NSMutableArray *refreshingImages = [NSMutableArray array];
Expand Down

0 comments on commit 817a833

Please sign in to comment.