Skip to content

Commit

Permalink
关闭footer的自动显示和隐藏功能,建议开发者手动显示和隐藏,更加灵活
Browse files Browse the repository at this point in the history
关闭footer的自动显示和隐藏功能,建议开发者手动显示和隐藏,更加灵活
  • Loading branch information
CoderMJLee committed Jan 7, 2016
1 parent 16ffb17 commit a21893d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 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.8'
s.version = '3.1.0'
s.summary = 'An easy way to use pull-to-refresh'
s.homepage = 'https://github.com/CoderMJLee/MJRefresh'
s.license = 'MIT'
Expand Down
2 changes: 1 addition & 1 deletion MJRefresh/Base/MJRefreshFooter.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@
/** 忽略多少scrollView的contentInset的bottom */
@property (assign, nonatomic) CGFloat ignoredScrollViewContentInsetBottom;

/** 自动根据有无数据来显示和隐藏(有数据就显示,没有数据隐藏) */
/** 自动根据有无数据来显示和隐藏(有数据就显示,没有数据隐藏。默认是NO*/
@property (assign, nonatomic, getter=isAutomaticallyHidden) BOOL automaticallyHidden;
@end
4 changes: 2 additions & 2 deletions MJRefresh/Base/MJRefreshFooter.m
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ - (void)prepare
// 设置自己的高度
self.mj_h = MJRefreshFooterHeight;

// 默认是自动隐藏
self.automaticallyHidden = YES;
// 默认不会自动隐藏
self.automaticallyHidden = NO;
}

- (void)willMoveToSuperview:(UIView *)newSuperview
Expand Down

0 comments on commit a21893d

Please sign in to comment.