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

  • Home
  • SEARCH
  • 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 5936357
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:23:15+00:00 2026-05-22T15:23:15+00:00

I have a subclass based on UIView and i want to change the tint

  • 0

I have a subclass based on UIView and i want to change the tint of the uinavigationbar but various methods I’ve tried haven’t worked. How do i do this?

  • 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-22T15:23:16+00:00Added an answer on May 22, 2026 at 3:23 pm

    As long as the view is in a viewController that’s part of the navigation stack you can do:

    viewController.navigationController.navigationBar.tintColor = [UIColor blackColor];
    

    To access the viewController, you can declare an id as an ivar in your View class:

    id myParentViewController;
    

    Declare this id as a property so it can be accessed from outside the View.

    When creating the view from the viewController, you could pass a reference to the viewController into the view by doing:

    view.myParentViewController = self;
    

    Where self would be the reference to your viewController on the navigation stack.

    Now that you’re in the view, you can access the navigation bar by doing this:

    if([myParentViewController isKindOfClass:[UIViewController class]])
        {
            UIViewController *theParentViewController = (UIViewController*)myParentViewController;
            theParentViewController.navigationController.navigationBar.tintColor = [UIColor blackColor];
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a subclass of UIView which draws itself based on data held in
I have document based application. It worked fine until I decided to change data
I have subclass of UINavigationBar . @interface MyNavigationBar : UINavigationBar Made some changes and
HI All. I have subclass of UIScrollView. IN this class I have added some
I have a subclass of a view controller. After adding the view of this
I have a UIView subclass onto which I need to blit a UIImage .
I have a UIView subclass with the drawRect: method overriden. In there, I have
I'm creating a custom subclass of UIView. I'm currently doing initialization based on Objective
I have an application based on NSDocument with an NSDocumentController subclass. My NSDocument works
i have view based application, and i want to call a method in superview(parentview)

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.