Commit 117d6e61 authored by Steven杜宇's avatar Steven杜宇

// AI

parent eab41eb3
...@@ -119,8 +119,8 @@ class YHAIMainChatViewController: YHBaseViewController { ...@@ -119,8 +119,8 @@ class YHAIMainChatViewController: YHBaseViewController {
} }
DispatchQueue.main.asyncAfter(deadline: .now()+0.5) { DispatchQueue.main.asyncAfter(deadline: .now()+0.5) {
self.tableView.setContentOffset(.zero, animated: true) // self.tableView.setContentOffset(.zero, animated: true)
self.tableView.setContentOffset(CGPointMake(0, 90000), animated: true) // self.tableView.setContentOffset(CGPointMake(0, 90000), animated: true)
// 使用 performBatchUpdates 来确保所有布局更新完成后再滚动 // 使用 performBatchUpdates 来确保所有布局更新完成后再滚动
self.tableView.performBatchUpdates(nil) { _ in self.tableView.performBatchUpdates(nil) { _ in
......
...@@ -194,8 +194,8 @@ class YHAIRobotChatViewController: YHBaseViewController { ...@@ -194,8 +194,8 @@ class YHAIRobotChatViewController: YHBaseViewController {
} }
DispatchQueue.main.asyncAfter(deadline: .now()+0.5) { DispatchQueue.main.asyncAfter(deadline: .now()+0.5) {
self.tableView.setContentOffset(.zero, animated: true) // self.tableView.setContentOffset(.zero, animated: true)
self.tableView.setContentOffset(CGPointMake(0, 90000), animated: true) // self.tableView.setContentOffset(CGPointMake(0, 90000), animated: true)
// 使用 performBatchUpdates 来确保所有布局更新完成后再滚动 // 使用 performBatchUpdates 来确保所有布局更新完成后再滚动
self.tableView.performBatchUpdates(nil) { _ in self.tableView.performBatchUpdates(nil) { _ in
......
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