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.
Selecting the search leads up to this screen :
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.
and if I repeat the steps then the gap keeps increasing.
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.