Commit a5760205 authored by David黄金龙's avatar David黄金龙

Merge branch 'youhua-dev' of http://gitlab.galaxy-immi.com/mobile-group/galaxy-iOS into youhua-dev

* 'youhua-dev' of http://gitlab.galaxy-immi.com/mobile-group/galaxy-iOS:
  //  生活详情
parents 6a289bc1 c6021f87
...@@ -212,11 +212,11 @@ class YHLifeDetailViewController: YHBaseViewController { ...@@ -212,11 +212,11 @@ class YHLifeDetailViewController: YHBaseViewController {
} }
self.tableView.snp.makeConstraints { make in self.tableView.snp.makeConstraints { make in
make.top.left.right.equalToSuperview() make.top.left.right.equalToSuperview()
make.bottom.equalTo(self.shareView.snp.top) make.bottom.equalTo(self.shareView.snp.top).offset(KScreenHeight*Double(10.0))
} }
self.fakeTableView.snp.makeConstraints { make in self.fakeTableView.snp.makeConstraints { make in
make.top.left.right.equalToSuperview() make.top.left.right.equalToSuperview()
make.bottom.equalTo(self.shareView.snp.top) make.bottom.equalTo(self.shareView.snp.top).offset(KScreenHeight*Double(10.0))
} }
let left = 20.0-Self.tabGap let left = 20.0-Self.tabGap
self.topSegmentedView.snp.makeConstraints { make in self.topSegmentedView.snp.makeConstraints { make in
...@@ -444,6 +444,15 @@ extension YHLifeDetailViewController { ...@@ -444,6 +444,15 @@ extension YHLifeDetailViewController {
if self.imgItems.count > 0 { if self.imgItems.count > 0 {
self.fakeTableView.scrollToRow(at: IndexPath(row: self.imgItems.count-1, section: 0), at: .top, animated: true) self.fakeTableView.scrollToRow(at: IndexPath(row: self.imgItems.count-1, section: 0), at: .top, animated: true)
} }
self.tableView.snp.updateConstraints { make in
make.bottom.equalTo(self.shareView.snp.top)
}
self.fakeTableView.snp.updateConstraints { make in
make.bottom.equalTo(self.shareView.snp.top)
}
self.tableView.setNeedsLayout()
self.tableView.layoutIfNeeded()
self.fakeTableView.setNeedsLayout() self.fakeTableView.setNeedsLayout()
self.fakeTableView.layoutIfNeeded() self.fakeTableView.layoutIfNeeded()
}) })
......
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