Customising Navigation Bar or Header in an IOS app would involve following things

  • Changing Background Colour
  • Adding a logo
  • Changing Text Colour

You would need to add below code mostly to your Initial View Controller

Just add the lines as per your requirement and change the colour values as per your needs.

barTintColor method defines the Tint Color to apply to the navigation bar background

The tintColor combines with the translucent part of the bar along with the content behind the bar and results in some different colour. To achieve full control over the colour displayed on the navigation bar you would need to set translucent option to false for the navigation bar appearance method

The other bit of code is self explanatory. It just applied a background colour and shows how to add a logo to your app header

Leave a Reply

Your email address will not be published. Required fields are marked *