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

  • Home
  • SEARCH
  • 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 9016023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T03:53:30+00:00 2026-06-16T03:53:30+00:00

Hello guys I am making a Universal app and the behavior of UINavigationBar on

  • 0

Hello guys I am making a Universal app and the behavior of UINavigationBar on iPad for a ViewController class not working.I googling a lot and also try the many solutions but did’t work for me.The setHidden property of UINavigationBar not working on iPad but it working fine in iPhone. UINavigationBar not hide in iPad I use the following way to make it hide but all these way failed in iPad but these working in iPhone:-

[self.navigationController setNavigationBarHidden:YES animated:YES];

and

self.navigationController.navigationBarHidden = YES;

And one more point when I goes from this 1st viewController to another 2nd ViewController and when I pop from 2nd ViewController then it goes to different ViewController class not to 1st ViewController class.

Here’s the pastebin link to the ViewController Code:-

  • 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-16T03:53:32+00:00Added an answer on June 16, 2026 at 3:53 am

    First off, are you sure you are suing a UINavigationController, not a UISplitViewController (as Shivan rightfully points out)? Also, are you sure your are running your hide action from your main tread ?

    In any case, I found this, that might help you;

    if( UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad )
    {
        CGRect rect = self.navigationController.navigationBar.frame;
        rect.origin.y = rect.origin.y < 0 ?
            rect.origin.y + rect.size.height
        :   rect.origin.y - rect.size.height;
    
        [UIView beginAnimations:nil context:NULL];
        [UIView setAnimationDuration:0.2];
        self.navigationController.navigationBar.frame = rect;
        [UIView commitAnimations];
    }
    else 
    {
        [self.navigationController setNavigationBarHidden:shouldHide animated:YES];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello guys i'm making a little app in which i need to enumerate all
Hello Guys I am working on WPF app and I want to Unlike the
Hello Guys I am working WPF app and I want to retrive all the
hello guys I'm working on an intership where they use ASP to code. Coming
hello guys i develop a simple app that read an XML file from the
hello guys i develop a simple app that read an XML file from the
Hello guys I'am beginner of the Java and my English is not good, i
hello guys i'm not sure if the title is descriptive enough.what i mean is
Hello guys I'm making an application that accesses MySQL & MsSQL databases that fiddles
Hello guys I've a a 2 model client and meal. client.rb class Client <

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.