diff --git a/MJRefresh/Base/MJRefreshComponent.m b/MJRefresh/Base/MJRefreshComponent.m index c9896145..6770c741 100644 --- a/MJRefresh/Base/MJRefreshComponent.m +++ b/MJRefresh/Base/MJRefreshComponent.m @@ -112,7 +112,7 @@ - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(N } // 看不见 - if (self.hidden || self.alpha <= 0.01) return; + if (self.hidden) return; if ([keyPath isEqualToString:MJRefreshKeyPathContentOffset]) { [self scrollViewContentOffsetDidChange:change]; } else if ([keyPath isEqualToString:MJRefreshKeyPathPanState]) { diff --git a/MJRefreshExample/MJRefreshExample.xcodeproj/project.xcworkspace/xcuserdata/mj.xcuserdatad/UserInterfaceState.xcuserstate b/MJRefreshExample/MJRefreshExample.xcodeproj/project.xcworkspace/xcuserdata/mj.xcuserdatad/UserInterfaceState.xcuserstate index 134a8263..7edd13e1 100644 Binary files a/MJRefreshExample/MJRefreshExample.xcodeproj/project.xcworkspace/xcuserdata/mj.xcuserdatad/UserInterfaceState.xcuserstate and b/MJRefreshExample/MJRefreshExample.xcodeproj/project.xcworkspace/xcuserdata/mj.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/MJRefreshExample/MJRefreshExample/Base.lproj/Main.storyboard b/MJRefreshExample/MJRefreshExample/Base.lproj/Main.storyboard index 54aad71e..d1d55829 100644 --- a/MJRefreshExample/MJRefreshExample/Base.lproj/Main.storyboard +++ b/MJRefreshExample/MJRefreshExample/Base.lproj/Main.storyboard @@ -1,8 +1,8 @@ - + - + diff --git a/MJRefreshExample/MJRefreshExample/Classes/MJSingleViewController.m b/MJRefreshExample/MJRefreshExample/Classes/MJSingleViewController.m index 5d2a8d0b..b21e070a 100644 --- a/MJRefreshExample/MJRefreshExample/Classes/MJSingleViewController.m +++ b/MJRefreshExample/MJRefreshExample/Classes/MJSingleViewController.m @@ -40,7 +40,6 @@ - (void)viewDidLoad { [tableView.footer endRefreshing]; }); }]; - tableView.footer.automaticallyChangeAlpha = YES; } - (NSInteger)tableView:(nonnull UITableView *)tableView numberOfRowsInSection:(NSInteger)section