make key mapping static

This commit is contained in:
True Zhuanjia
2024-07-24 19:29:52 +08:00
parent a975b0e24a
commit b6ecdcd0ea
2 changed files with 6 additions and 5 deletions
@@ -199,7 +199,6 @@ import UIKit
if let indexPath = previouslySelectedIndexPath {
// Make sure the indexPath is still valid and scroll to the selected indexPath
if indexPath.row < tableView.numberOfRows(inSection: indexPath.section) {
print("scrollToRow")
tableView.selectRow(at: indexPath, animated: true, scrollPosition: .middle) // keep the entry of previous index selected.
}
}