I am working on a iOS (Swift) project. I am trying to embed a UINavigationController inside a container view. As seen:
It goes: UITabBarController -> UIViewController: container view -> UINavigationController -> UIViewController
I have hidden the Navigation Bar and Toolbar for the UINavigationController
Everytime I run it, I am getting this result (the red is the container views background)
Why is this happening? and how can I get rid of the red bar and make the tableview fill the whole container view?
BTW: If I embed the table view to the container view directly, I don't have this problem. It only seems to happen when using a navigation controller.