To change the background color of navigation bar and the tint color of bar button items, no code is needed.
In the storyboard, click on the navigation bar of your navigation controller.
Set the Bar Tint for changing the background color. And Tint inside the View section.
Below shows how to set the background to blue and buttons to white.46