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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T19:07:50+00:00 2026-06-16T19:07:50+00:00

I am trying to implement a custom UINavigationBar Image background for iOS 6 but

  • 0

I am trying to implement a custom UINavigationBar Image background for iOS 6 but I am having no luck. All it displays is the normal one from Apple (with no back button).
I have tried the following code within viewDidLoad (One at time):

[[UINavigationBar appearance] setBackgroundImage:myImage forBarMetrics:UIBarMetricsDefault];

[self.navigationController.navigationBar setBackgroundImage:myImage forBarMetrics:UIBarMetricsDefault];

I am presenting the desired view by:

optionViewController *choose= [[optionViewController alloc] initWithNibName:@"optionViewController" bundle:nil];
UINavigationController *aNavController = [[UINavigationController alloc] initWithRootViewController:choose];
[self presentViewController: aNavController animated:YES completion:nil];

Any help would be appreciated. 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-16T19:07:52+00:00Added an answer on June 16, 2026 at 7:07 pm

    you can set Navigation bar Custom image like this way:-

            optionViewController *choose= [[optionViewController alloc] initWithNibName:@"optionViewController" bundle:nil];
            UINavigationController *aNavController = [[UINavigationController alloc] initWithRootViewController:choose];
            UIImage *image = [UIImage imageNamed:@"imageName"];
            [aNavController.navigationBar setBackgroundImage:image forBarMetrics:UIBarMetricsDefault];
    
            [self presentModalViewController:aNavController animated:YES]; //change here to PresentViewcontroller to presentmodelViewcontroller
    

    here’ is image:-

    enter image description here

    and in above image the Back button is not the Default one, but it’s putting through programmatically.

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

Sidebar

Related Questions

I'm trying to implement UINavigationBar with custom controls. So, I've added UIView on left
I was trying to implement custom validation attribute by inheriting from ValidationAttribute and found
I'm trying to implement a custom field type for my Symfony2 forms but for
I'm trying to implement a custom class for dataannotations that retrieves error messages from
I'm trying to implement custom view to display the text, but there is a
I am trying to implement custom attribute validation, similar to one demonstrated here in
I'm trying to implement a custom client side validation, but it is not working.
I'm trying to implement a custom live chat program on the web, but I'm
So I'm trying to implement a custom button in my iOS app to replace
I am trying to implement a custom OpenGL scene (wrapped in a QGLWidget), but

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.