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 7191023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:38:28+00:00 2026-05-28T19:38:28+00:00

I have a Navigation Bar created via code. When I change it’s tintColor the

  • 0

I have a Navigation Bar created via code. When I change it’s tintColor the bar is bad. Hoverer the color is plain and not iOS style. Can I change this? Thanks

enter image description here

UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:frontViewController];
   navigationController.navigationBar.tintColor = [UIColor colorWithRed:0 green:166 blue:208 alpha:1];
  • 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-28T19:38:29+00:00Added an answer on May 28, 2026 at 7:38 pm

    This is because the method call to UIColor you are making expects float values between 0.0 and 1.0, whereas you are passing in straight RBG values as ints:

    This will work:

    myNavigationBar.tintColor = [UIColor colorWithRed:((0 * 1.0) / 255) green:((166 * 1.0) / 255) blue:((208 * 1.0) / 255) alpha:1.0];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a flexible navigation bar in my app that will show custom
I am new to iphone development.I have created a UIBarButtonItem on the navigation bar.I
I have created a navigation bar with a horizontal unordered list. This displays fine
I have created a simple UL/LI navigation bar. It looks perfectly fine in both
I have a class where i create my navigation bar. Then i have created
I have an MVC 3 site. I've created a navigation bar that looks like
I have a navigation bar that has two dropdowns (as nested ul's). I'm trying
If have a Navigation Bar and a Tab Bar in one of my views.
Imagine I have a navigation bar in my page header, with a number of
I have a view with navigation bar control on the top. The view is

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.