Search code examples
iosiphoneuinavigationcontrolleruinavigationbar

Lone Navigation Bar height vs Navigation Bar height in navigation controller


I was creating an app where there is a view controller presented as a pop over, but when I try to present the view controller, the navigation bar that isn't part of the navigation controller overlaps with the status bar. The height on the attributes inspector reads 44 for the navigation bar.

On the other hand, I have another navigation bar inside a navigation controller, and with the attributes inspector still reading 44, it produces a completely different result.

Could this be a problem with constraints? Or is a navigation controller's navigation bar size larger for some reason?


Solution

  • I think you have added a navigation bar to a Add League UIViewController. The solution would be using a navigation controller with Add League as its child controller.