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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -