Skip to content

Commit

Permalink
fix: 内容没有超过一个屏幕,触发footer的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
jinjiahui committed Jan 14, 2020
1 parent 37d5a51 commit c811c32
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ESPullToRefresh.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Pod::Spec.new do |s|
s.name = 'ESPullToRefresh'
s.version = '2.9.1'
s.version = '2.9.2'
s.summary = 'An easy way to use pull-to-refresh and loading-more'
s.description = 'An easiest way to give pull-to-refresh and loading-more to any UIScrollView. Using swift!'
s.homepage = 'https://github.com/eggswift/pull-to-refresh'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -624,12 +624,12 @@
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_IDENTITY = "iPhone Developer";
CURRENT_PROJECT_VERSION = 2.9.1;
CURRENT_PROJECT_VERSION = 2.9.2;
DEVELOPMENT_TEAM = A367N9R36B;
INFOPLIST_FILE = ESPullToRefreshExample/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 2.9.1;
MARKETING_VERSION = 2.9.2;
PRODUCT_BUNDLE_IDENTIFIER = com.eggswift.ESPullToRefreshExample11;
PRODUCT_NAME = Example;
SWIFT_VERSION = 5.0;
Expand All @@ -642,12 +642,12 @@
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_IDENTITY = "iPhone Developer";
CURRENT_PROJECT_VERSION = 2.9.1;
CURRENT_PROJECT_VERSION = 2.9.2;
DEVELOPMENT_TEAM = A367N9R36B;
INFOPLIST_FILE = ESPullToRefreshExample/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 2.9.1;
MARKETING_VERSION = 2.9.2;
PRODUCT_BUNDLE_IDENTIFIER = com.eggswift.ESPullToRefreshExample11;
PRODUCT_NAME = Example;
SWIFT_VERSION = 5.0;
Expand Down
2 changes: 2 additions & 0 deletions Sources/ESPullToRefresh.swift
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,8 @@ open class ESRefreshHeaderView: ESRefreshComponent {
self.animator.refreshAnimationEnd(view: self)

// Back state
scrollView.contentInset.top = self.scrollViewInsets.top
scrollView.contentOffset.y = self.previousOffset
UIView.animate(withDuration: 0.2, delay: 0, options: .curveLinear, animations: {
scrollView.contentOffset.y = -self.scrollViewInsets.top
}, completion: { (finished) in
Expand Down

1 comment on commit c811c32

@yanmingLiu
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

依然有问题, 你只需要把demo里面初始化的数据放一个,直接 info cell高度较低的,就依然会有问题
Kapture 2021-03-09 at 19 16 22
self.array.append("info")

Please sign in to comment.