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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:04:17+00:00 2026-05-27T04:04:17+00:00

I have a UINavigationController and a UITabBar within my app. The UINavigationController has a

  • 0

I have a UINavigationController and a UITabBar within my app.

The UINavigationController has a translucent black navigation bar as follows:

in the app delegate:

[[UINavigationBar appearance] setBarStyle:UIBarStyleBlackTranslucent];
    [[UINavigationBar appearance] setAlpha:0.7];

I’m also hiding the status bar and displaying my own interpretation of the status bar in the lower, transparent half of the UINavigationBar, like this:

  self.navigationController.view.frame = CGRectMake(0,-22,320,480);

This works once the app has been loaded: the lower half of the UINavigationbar is transparent and I can show my own status indicators there.

However, once I tap on any of the TabBar tabs and then return back to the original controller, 2 things happen:
The view managed by the UINavigationController is shifted down to start at the lower half of the UINavigationBar. The UINavigationBar is no longer transparent.
This breaks the layout of my UI by ~20-22 pixels.

How can I “persuade” my UI to remember it’s original layout and not reset to whatever it wants to be when different tabs are selected?

Thank you.

  • 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-27T04:04:18+00:00Added an answer on May 27, 2026 at 4:04 am

    My best suggestion to you would be not to custom build everything, but since you seem to be going to all the work of creating a custom view, I would try the following:

    1. Make sure you have no code anywhere that changes the original view after you put the new edits in.
    2. Test going back and forth between empty tabs that have nothing on them and see if anything changes in the original view.

    If all else fails, then when you call the code to dismiss the new tabs and return to the original view, re-run all of the previous code you used to set up the view. You can make it easier on yourself and the system if you put all of the code to change the view in the “constructor” of the bars.

    Then all you would have to do is

    -(void)ChangeTabs
    {
        [UINavigationController dealloc];
        [UINavigationController alloc];
        [UITabView dealloc];
        [UITabView alloc];
    }
    

    Something simple like this would solve your problem and still run efficiently. It’s up to you, but I would definitely consider moving toward the latter, especially if you run multiple steps just to get the two bars set up properly.

    Hope this helps you.

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

Sidebar

Related Questions

I have a UITabBar. In the first tab, I have a UINavigationController. Within that
I have an iPad app that has an MKMapView embedded in a UINavigationController which
I have a UINavigationController which has a loginview that appears once the app has
I have a UINavigationController with a visible Navigation Bar. I have one particular UIViewController
I have a UINavigationController and a UITabBar within the application. Each ViewController within the
I have a UINavigationController within a UITabBarController. Within the navigation controller I have a
I have a UITabBar + UINavigationController application which often needs data from the internet.
I'm working on a simple iPhone app. I have 1 UINavigationController and 2 subclasses
I have a UINavigationController on some tab of a UITabBar . When I drill
So, I have a fairly typical app with UITableViewController 's inside of an UINavigationController

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.