-1

I have a question regarding the tableview in swift 3.

I would like to go to a specific section when the tableview is initialised. I'm creating a calendar application and want to go to to section of the next coming event. I've googled and found nothing regarding this.

rmaddy
  • 314,917
  • 42
  • 532
  • 579
JBAM
  • 13
  • 3

1 Answers1

0

You can use something like...

tableView.scrollToRow(at: IndexPath, at: ScrollPosition, animated: Bool)

https://developer.apple.com/documentation/uikit/uitableview/1614997-scrolltorow

Fogmeister
  • 76,236
  • 42
  • 207
  • 306