(Happy to accept an answer in Swift or Objective-C)
My table view has a few sections, and when a button is pressed, I want to insert a row at the end of section 0.
for me work, turn off automatic estimate for tableview rows, section, headers and I use heightForRowAt
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { if indexPath.row % 2 == 1 { if arrowsVisible { return 20 } return 5 } }