0

I'm trying to reload UITableView section Header instead of reloading the whole section's rows because I have a UITextfield in the row and when I call tableview reloadSections it's clear the textfield value.

bunbun
  • 2,595
  • 3
  • 34
  • 52
link786
  • 21
  • 6

2 Answers2

0

You can use,

tableView.beginUpdates()
tableView.endUpdates()
Bappaditya
  • 9,494
  • 3
  • 20
  • 29
0
let sectionIndex = IndexSet(integer: 0)
self.tableView.reloadSections(sectionIndex, with: .none)

You can reload the tableview with this code. You dont need to reload header for showing items

Ali Ihsan URAL
  • 1,894
  • 1
  • 20
  • 43