If I have a UITableView
with a selected cell, how can I scroll the table so the selected cell is visible? (Or better, so that cell is in the middle of the screen).
Thanks!
if let indexPath = tableView.indexPathForSelectedRow {
tableView.scrollToRowIndexPath(indexPath, atScrollPosition: .None, animated: true)
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With