Commit 5857ba09 authored by Steven杜宇's avatar Steven杜宇

// 更改刷新方式

parent 1701df2f
...@@ -154,7 +154,7 @@ private extension YHHomePageViewController { ...@@ -154,7 +154,7 @@ private extension YHHomePageViewController {
homeCollectView.addSubview(homeHeaderView) homeCollectView.addSubview(homeHeaderView)
homeCollectView.contentInset = UIEdgeInsets(top: YHHomeHeadView.viewH, left: 0, bottom: 0, right: 0) homeCollectView.contentInset = UIEdgeInsets(top: YHHomeHeadView.viewH, left: 0, bottom: 0, right: 0)
let tmpHeadView = homeCollectView.es.addPullToRefresh { let tmpHeadView = homeCollectView.es.addYHPullToRefresh {
self.loadFirstData() self.loadFirstData()
} }
......
...@@ -85,7 +85,7 @@ class YHSearchInfomationVC: YHBaseViewController { ...@@ -85,7 +85,7 @@ class YHSearchInfomationVC: YHBaseViewController {
tableView.backgroundColor = .white tableView.backgroundColor = .white
tableView.backgroundView = emptyDataTipsView tableView.backgroundView = emptyDataTipsView
tableView.register(YHSearchInfoCell.self, forCellReuseIdentifier: YHSearchInfoCell.cellReuseIdentifier) tableView.register(YHSearchInfoCell.self, forCellReuseIdentifier: YHSearchInfoCell.cellReuseIdentifier)
tableView.es.addPullToRefresh { tableView.es.addYHPullToRefresh {
self.loadFirstData() self.loadFirstData()
} }
tableView.es.addInfiniteScrolling { tableView.es.addInfiniteScrolling {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment