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 ?
You can check the constraints in Interface Builder:
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: