Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3272588
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T18:50:30+00:00 2026-05-17T18:50:30+00:00

how do you change the colour of the Navigation Bars, Tab Bars? Everytime I

  • 0

how do you change the colour of the Navigation Bars, Tab Bars?

Everytime I change it, I dont get the colour I want, It either gradient red, or gradient white/silver.

But unable to do it, default gradient blue and grey both look good but try changing it any other colour and it looks terrible.

Any tips? how to do gradient?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T18:50:31+00:00Added an answer on May 17, 2026 at 6:50 pm

    For Navigation Bar you could use:

    [navigationController.navigationBar setTintColor:[UIColor redColor]; //Red as an example.
    

    This would tint the color of the Navigation Bar and all it’s Buttons to a specific color, in this case red. This property can also be set in Interface Builder.

    And if you wanted to customize it further, you can set the background of the UINavigationBar to an image by sub-classing it. Like so…

    Header File.

    #import <UIKit/UIKit.h>
    
    @interface UINavigationBar (CustomImage)
    
    @end
    

    Implementaion File.

    #import "CustomNavigationBar.h"
    
    @implementation UINavigationBar (CustomImage)
    
    - (void)drawLayer:(CALayer *)layer inContext:(CGContextRef)ctx
    
    {
        if([self isMemberOfClass: [UINavigationBar class]]){
            UIImage *image = [UIImage imageNamed:@"bar.png"];
            CGContextClip(ctx);
            CGContextTranslateCTM(ctx, 0, image.size.height);
            CGContextScaleCTM(ctx, 1.0, -1.0);
            CGContextDrawImage(ctx, CGRectMake(0, 0, self.frame.size.width, self.frame.size.height), image.CGImage);
        }else{
            [super drawLayer:layer inContext:ctx];
        }
    
    }
    
    @end
    

    Then in Interface Builder set the class of you UINavigationBar to (in this case) CustomNavigationBar under the Identity Tab.

    If you change the code slightly so it subclasses UITabBar instead, it might work with UITabBar although I haven’t tried it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i want change title's color of navigation controller but i dont know why doesn't
I want to change the colour of certain parts of a control which is
I want to change the color on the navigation bar and the documentation states
All of my view has a blue navigation bar but when I want user
I am trying to change the the colour of a navigation bar controller and
I want to change the color of back button of a navigation bar to
I'm having a problem with trying to change the colour of my navigation controller
I know how to change the color of my navigation bar title but when
I am using navigation controller in my application and want to change title color
I'm trying to change the colour of the active or current page navigation link

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.