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

angular - DownloadURL return null in below code -

python 2.7 - Given three nested dictionaries, sort the top two nested dictionaries from a value in the innermost dictionary? -