2017-09-20 1 views

Répondre

1

Vous pouvez le faire comme ceci:

override func viewDidAppear(_ animated: Bool) { 
    super.viewDidAppear(animated) 

    let indexPath = IndexPath(row: 5, section: 0) 
    self.tableView.scrollToRow(at: indexPath, at: .top, animated: true) 
} 

Assurez-vous que le row et section est correcte.