Vamsi Krishna Surathi Vamsi Krishna Surathi -4 years ago 111
Swift Question

how to reduce the space between navigation bar and the device during landscape mode?

I had given auto layout for the navigation bar but still there is some space between the navigation bar and the screen can anyone help me how to reduce this ?

I had given auto layout for the navigation bar but still there is some space between the navigation bar and the screen can anyone help me how to reduce this ?

Answer Source

You can check the constraints in Interface Builder:

enter image description here

If you want to investigate a running app, click the Debug View Hierarchy button in Xcode: enter image description here

This will pause the running app, and display a 3D view of the layout. Click on the space between the element and the navigation bar. Xcode will display the class name:

enter image description here

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download