Commit 33c9f14c authored by Steven杜宇's avatar Steven杜宇

// 生活详情点击

parent 2784cb6f
...@@ -254,7 +254,7 @@ extension YHLifeDetailViewController: JXSegmentedViewDelegate { ...@@ -254,7 +254,7 @@ extension YHLifeDetailViewController: JXSegmentedViewDelegate {
if 0 <= index, index < self.imgItems.count { if 0 <= index, index < self.imgItems.count {
self.fakeTableView.scrollToRow(at: IndexPath(row: index, section: 0), at: .top, animated: true) self.fakeTableView.scrollToRow(at: IndexPath(row: index, section: 0), at: .top, animated: true)
DispatchQueue.main.asyncAfter(deadline: .now()+0.3, execute: { DispatchQueue.main.asyncAfter(deadline: .now()+0.1, execute: {
let rect = self.fakeTableView.rectForRow(at: IndexPath(row: index, section: 0)) let rect = self.fakeTableView.rectForRow(at: IndexPath(row: index, section: 0))
var y = rect.origin.y - k_Height_NavigationtBarAndStatuBar-45.0+2.0 var y = rect.origin.y - k_Height_NavigationtBarAndStatuBar-45.0+2.0
if y > self.fakeTableView.contentSize.height-self.fakeTableView.height { if y > self.fakeTableView.contentSize.height-self.fakeTableView.height {
......
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