3

I have a tableview that opens up a section every time I tap on one of the fields, to hide that section I tried attaching the cell in the class and doing:

passwordCreationCell.isHidden = true

the problem with that that every time I do it, I get a white empty cell,

enter image description here

how do I remove the white spacing? or how do I remove the cell from display \ add it again?

Cœur
  • 34,719
  • 24
  • 185
  • 251
Chief Madog
  • 1,931
  • 4
  • 26
  • 51

1 Answers1

2

This case can be solved by two different ways

Either Remove hidden cells indexpaths from tableview or if you want the cell to be there on the tableview return 0 in heightForRowAtIndexpath

Rajesh
  • 10,028
  • 15
  • 40
  • 63