Skip to content
This repository was archived by the owner on Jul 1, 2020. It is now read-only.

Commit cc5abda

Browse files
解决noMoreData状态,点击还能继续加载的bug
1 parent ddbac65 commit cc5abda

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Source/Classes/PullToRefresh.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,9 @@ public extension UIScrollView{
198198
}
199199
public func beginFooterRefreshing(){
200200
let footer = self.viewWithTag(PullToRefreshKitConst.footerTag) as? RefreshFooterContainer
201-
footer?.beginRefreshing()
201+
if footer?.state == .idle {
202+
footer?.beginRefreshing()
203+
}
202204
}
203205
public func endFooterRefreshing(){
204206
let footer = self.viewWithTag(PullToRefreshKitConst.footerTag) as? RefreshFooterContainer

0 commit comments

Comments
 (0)