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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:03:28+00:00 2026-05-26T22:03:28+00:00

I want to add a image just above the navigation bar. Here is the

  • 0

I want to add a image just above the navigation bar. Here is the final result picture I want:
click me

At the beginning, I think it is quite simple:

  1. Using UIBuilder add one UIImage and one UIView
  2. Add navigation bar controller to UIView as its root view

The Hierarchy I thought should like this: UIViewController->UIView->NavigationBarController.(Here the UIView is one subview of the view of UIViewController)

Below is one of the code I tried, subView is the IBOutlet of one UIView builed by UIBuilder

    UINavigationController *test;
    test=[[UINavigationController alloc]init];

    [[subView window] setRootViewController:test];
    [subView.window makeKeyAndVisible];

But after trying several times,I found it is not working.

Does anyone do the same work before? If so, please give me some suggestions.

  • 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-26T22:03:28+00:00Added an answer on May 26, 2026 at 10:03 pm

    CodaFi’s suggestion is almost there.

    Try this:

    test.view.frame = CGRectMake(0, //height of imageView//, self.window.bounds.size.width, //(total height of content... e.g. 460.0f if you leave the status bar visible)-(height of imageView)//);
    

    There is one thing to note though… The navigation controller likes to take up all the usable space on screen so sometimes it will automatically resize its view to a rect like this, {{0.0f,0.0f},{320.0f,460.0f}} after rotating the device. I have experienced this many times on the iPad. You might have to start listening for the rotation event, and reset the frame of the navigation controller’s view on every rotation to one that doesn’t block your image.

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

Sidebar

Related Questions

I just want to add some image to the MVC3 Grid header to click
I want to add a background image to a bar chart using Highcharts and
I want to add image to the grid just like the following xaml file
I really just want to add a fixed image to my zencart shopping cart
Hi I want to add image in table cell according to condition in table.
I want to add an image, instead of the default button. I already have
I want to add background image to uinavigationcontroller. Please help me.
I want to add an image to be a background of the header, the
I am very new to Java, I want to add a PNG image to
Hi an developing drawing android application. in that i want to add a sticker(image)

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.