Make the last row in UITableView appear at top
Make the last row in UITableView appear at top I have a UITableView with a random number of custom cells. It's working fine. I am moving the selected cell to the top of the UITableView with: tableView.scrollTo(index path animated) However, when the selected cell is on the last full 'page' of cells, this doesn't work - obviously. Can I make this work by somehow 'padding' out the table with empty space, dependent on the Y position of the selected cell, so that even selecting the last row, it would animate and move to the top of the table view? I thought: let point = CGPoint(x: 0, y: 200) tableView.setContentOffset(point, animated: false) would work, but it didn't (the 200) was a test amount. I'm sure this is possible, could I please get a pointer? 2 Answers 2 If you want to allow a table view to be scrolled far enough for the last row to reach the top of the screen, set...
