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 reloadSection
s it's clear the textfield value.
Asked
Active
Viewed 365 times
0
-
Think the other way round: Save the value of the text field in the data model. – vadian Dec 30 '18 at 17:56
2 Answers
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