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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:32:38+00:00 2026-05-26T18:32:38+00:00

So, here’s an interesting little problem I’ve had to deal with. I coded a

  • 0

So, here’s an interesting little problem I’ve had to deal with. I coded a navigationBar to be translucent and the view underneath to be fullScreen. When I load the view, I can tap on a clear button in the view to “activate” an animation that fades in the bar and other ui elements.

enter image description here

When I rotate the device WITH THE UI ELEMENTS VISIBLE it works perfectly.

But if I tap again to “turn off” the elements with a fade out animation, then rotate, it pushes the naivgationbar up into the status bar.

enter image description here

I don’t understand why this happens. I don’t want to turn off the statusBar, but if I have to, I will. Can anyone help me with the bar’s autorotation positioning?

EDIT SOLVED

  • 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-26T18:32:39+00:00Added an answer on May 26, 2026 at 6:32 pm

    SOLVED, this code animates the 20 pixels needed to move the bar down.

    - (void)showToolbar
    {
    
        if (toolbar.hidden == YES)
        {
            [self.navigationController.view layoutSubviews];
            [UIView animateWithDuration:0.25 delay:0.0
                                options:UIViewAnimationOptionCurveLinear | UIViewAnimationOptionAllowUserInteraction
                             animations:^(void)
             {
                 [[UIApplication sharedApplication]setStatusBarHidden:NO withAnimation:UIStatusBarAnimationFade];             
                 toolbar.hidden = NO;
                 toolbar.alpha = 1.0f;
                 self.navigationController.navigationBar.alpha = 1.0f;
                 CGRect frame = self.navigationController.navigationBar.frame;
                 frame.origin.y = 20.0;
                 self.navigationController.navigationBar.frame = frame;
             }
                             completion:NULL
             ];
        }
        if ([self.navigationController.navigationBar isHidden]) {
            [self.navigationController setNavigationBarHidden:NO animated:NO]; 
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here's an interesting problem. On a recently installed Server 2008 64bit I opened IE
Here's a problem I ran into recently. I have attributes strings of the form
Here's a coding problem for those that like this kind of thing. Let's see
Here is my problem : I have a post controller with the action create.
Here's some of my production code (I had to force line breaks): task =
Here's my problem I have this javascript if (exchRate != ) { function roundthecon()
Here is my code sample, let me know if it can be further improved?
Here is another spoj problem that asks how to find the number of distinct
Here my problem: @Assert\Regex( * pattern=/^[A-Za-z0-9][A-Za-z0-9\]*$/, * groups={creation, creation_logged} * ) I'm using the
Here is my problem...I have a page that loads a list of clients and

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.