Search code examples
iosxcodeswiftswift2xcode7

Navigation Bar goes beneath Status Bar in iOS application


I have a Table View, Navigation Bar and Left Bar Button as following image: enter image description here

When I run the application, the Navigation Bar goes under Status Bar as following image:

enter image description here

Is there's any fix for this?

I am coding using swift 2.0 and Xcode 7.3.1


Solution

  • If you want to use navigation controller and tab bar controller together you should embed tab bar in a navigation controller.

    Please see below stack post:

    Using tabbar and navigation bar together