Enhance beginRefreshing view effect
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "MJRefresh"
- s.version = "2.0.1"
+ s.version = "2.0.2"
s.summary = "The easiest way to use pull-to-refresh"
s.homepage = "https://github.com/CoderMJLee/MJRefresh"
s.license = "MIT"
@@ -133,7 +133,9 @@ - (void)setRefreshingTarget:(id)target refreshingAction:(SEL)action
#pragma mark 进入刷新状态
- (void)beginRefreshing
{
- self.alpha = 1.0;
+ [UIView animateWithDuration:MJRefreshFastAnimationDuration animations:^{
+ self.alpha = 1.0;
+ }];
self.pullingPercent = 1.0;
// 只要正在刷新,就完全显示
if (self.window) {