I need to reload the section excluding the header after I do some sort on my tableview data. That's to say I just want to reload all the rows in the section. But I don't find a easy way to make it after I search for a while.
reloadSections(sectionIndex, with: .none)
not works here, for it will reload the whole section including the header, footer and all the rows.
So I need to use reloadRows(at: [IndexPath], with: UITableViewRowAnimation)
instead. But how to get the whole indexPaths for the all the rows in the section.