ios - How to add constraints to TableView on TableViewController? -


i have tabbar, searchcontroller , tableview...

to fix problem black screen, added following string tableviewcontroller places searchcontroller on itself:

self.definespresentationcontext = true 

but, receive next problem - after move next controller , tableviewcontroller table placed below navigation bar.

how can fix that?

enter image description here

you can try in tableviewcontroller viewdidload method:

yourtableview.contentinset = uiedgeinsets(top: 50, left: 0, bottom: 0, right: 0) 

Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -