Commit 0c4d06f7 authored by lujunye's avatar lujunye

地址管理列表更改下拉刷新模式

parent 14f598fa
......@@ -133,7 +133,11 @@ class DZGLViewController: BaseViewController,UITableViewDelegate,UITableViewData
navbar.rightTitle = "新增"
searchBgH.constant = 45
loadData()
//下拉刷新相关设置
headerMJ.setRefreshingTarget(self, refreshingAction: #selector(loadData))
self.listView!.mj_header = headerMJ
self.listView.mj_header?.beginRefreshing()
}
listView.separatorStyle = .none
// SetTopFrameView(view: listView, btmView: btmLbl)
......@@ -162,7 +166,9 @@ class DZGLViewController: BaseViewController,UITableViewDelegate,UITableViewData
})
self.listView.reloadData()
HUD.hide()
}) { (error) in
self.listView.mj_header?.endRefreshing()
}) { (data) in
self.listView.mj_header?.endRefreshing()
}
}
......
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