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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T16:35:14+00:00 2026-06-07T16:35:14+00:00

I’d like to do something that I presumed would be quit simple but turned

  • 0

I’d like to do something that I presumed would be quit simple but turned out to be quite hard! I want to style the navigationbar and toolbar of my navigationcontroller. I want them both to have:

  1. A custom background image, I know I can use appearance proxies but this will not meet the requirements of the following point.
  2. The navigationbar and toolbar should be of the same height of the background images that I set for them. I’ve tried setting the frame height but it didn’t work.
  3. Lastly I’d then like to add some buttons (with specific height and widths, not something fixed/standard) to the navigationbar and toolbar, but I hope the toolbar/navigation will just behave like an UIView.

How do I achieve these three points? Thanks!

  • 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-06-07T16:35:15+00:00Added an answer on June 7, 2026 at 4:35 pm

    What I did for this was to create images that looked exactly like the built in navigation bar. I also created a back button which was very close to the default one. You could of course do whatever you like. This did take a fair bit of time but once you’ve done that, you can just load them into your app as a UIImageView and a UIButton. Easy as pie. And totally customizable.

    - (void) viewDidLoad {
    
        UIView *navBarView = [[UIView alloc] initWithFrame:CGRectMake(0,0,320,44)];
    
        UIImageView *navBarImg = [[UIImageView alloc] initWithFrame:CGRectMake(0,0,320,44)];
        [navBarImg setImage:[UIImage imageNamed:@"navigationBarImage"]]; // the name of the .png file you made
        [navBarView addSubview:navBarImg];
    
        UIButton *backButton = [UIButton buttonWithType:UIButtonTypeCustom];
        [backButton setBackgroundImage:[UIImage imageNamed:@"backButtonNormal"] forState:UIControlStateNormal];
        [backButton setBackgroundImage:[UIImage imageNamed:@"backButtonHighlighted"] forState:UIControlStateHighlighted];
        [backButton setFrame:CGRectMake(5,5,40,35)]; //Depends on how you do your button
        [backButton addTarget:self action:@selector(backButtonPressed:) forControlEvents:UIControlEventTouchUpInside];
        [navBarView addSubview:backButton];
    
        //Repeat for any other buttons you wish to add. 
    
        [self.view addSubview:navBarView];
    }
    
    - (IBAction) backButtonPressed:(id)sender {
       [self.navigationController popViewControllerAnimated:YES];
    }
    
    
    //Pushing VC's
    // I usually make a declared property for the VC and then:
    - (IBAction) visitNextVC {
       NextVC *_nextVC = [[NextVC alloc] initWithNibName:@"NextVC" bundle:nil];
       [self setNextVC:_nextVC];
       [self.navigationController pushViewController:nextVC animated:YES];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a French site that I want to parse, but am running into
I would like to count the length of a string with PHP. The string
I want to count how many characters a certain string has in PHP, but
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I would like to run a str_replace or preg_replace which looks for certain words
I am doing a simple coin flipping experiment for class that involves flipping a
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I want to construct a data frame in an Rcpp function, but when I
Seemingly simple, but I cannot find anything relevant on the web. What is the

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.