UITableView scroll to bottom from current position
问题 How can I scroll to last row in tableview from current positon, because I have tried this solution: self.tableView.scrollToRow(at: lastIndex.last!, at: .bottom , animated: false) let numberOfSections = self.tableView.numberOfSections let numberOfRows = self.tableView.numberOfRows(inSection: numberOfSections-1) if numberOfRows > 0 { let indexPath = IndexPath(row: numberOfRows-1, section: (numberOfSections-1)) self.tableView.scrollToRow(at: indexPath, at: .bottom, animated: animated) } and it