Commit 685ba291 authored by Steven杜宇's avatar Steven杜宇

// 首页身份

parent 91fd43f4
......@@ -263,14 +263,12 @@ extension YHHomeIdentityListVC {
case .failure(let error):
print("image download failed: \(error.localizedDescription)")
}
self.tableView.reloadData()
ossGroup.leave()
}
}
ossGroup.notify(queue: .main) {
self.tableView.reloadData()
DispatchQueue.main.asyncAfter(deadline: .now()+0.2, execute: {
self.tableView.setContentOffset(CGPointZero, animated: false)
})
}
}
}
......@@ -26,6 +26,13 @@ class YHHomeIdentityViewController: YHBaseViewController {
[weak self] index, item in
guard let self = self else { return }
self.scrollView.setContentOffset(CGPointMake(KScreenWidth * Double(index), 0), animated: false)
if 0 <= index, index < self.children.count {
let vc = self.children[index]
if vc.isKind(of: YHHomeIdentityListVC.self) {
(vc as! YHHomeIdentityListVC).isShowBottomView = false
self.hideBottomOnTabbar()
}
}
}
return bar
}()
......
......@@ -38,8 +38,8 @@ class YHHomeIdentityCell: UITableViewCell {
}
func setupUI() {
self.selectionStyle = .none
self.contentView.addSubview(self.imgView)
self.imgView.snp.makeConstraints { make in
make.edges.equalToSuperview()
}
......
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