2

I know there have been many similar questions (especially a lot of good answers here) but none of them seem to work for me hence asking the question.

So I have a plain tableview with a searchBar in Navigation bar.

enter image description here

Selecting the search leads up to this screen : enter image description here

Everything is ok for now, but if I go back to screen1 -> scroll down -> scroll up again (or tap the nav bar for autoscroll) -> select search again -> then there is a weird space above the first section on screen2. enter image description here

and if I repeat the steps then the gap keeps increasing. enter image description here

I am using xcode 9.3, ios11 ,without autolayout (long story). I've been stuck here for quite some time so any help would be highly appreciated.

Update A sample project can be found here.

user3752049
  • 167
  • 1
  • 14

0 Answers0