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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T06:34:19+00:00 2026-06-17T06:34:19+00:00

I am trying to make a navigation based application having three UIViewController in navigation

  • 0

I am trying to make a navigation based application having three UIViewController in navigation stack. I have a bottom bar (UITabBar).

I want to hide tabbar when first UIViewController is pushed into the stack and I want to show tabbar when second UIVIewController is pushed.

Here is the code I have written to do so.

For First UIVIewController:

NotificationDetailsVC *obj = [[NotificationDetailsVC alloc] init];
obj.hidesBottomBarWhenPushed = YES;
[self.navigationController pushViewController:obj animated:YES];
[obj release];

For Second UIViewController I have done:

NotificationBO *obj=[self.notificationsArray objectAtIndex:indexPath.row];
object.hidesBottomBarWhenPushed = NO;
[self.navigationController pushViewController:object animated:YES];
[object release];

Now the problem is that, I can get UITabBar Hidden for first UIViewController, but for second it is also hidden.

How can I solve this issue?

  • 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-17T06:34:21+00:00Added an answer on June 17, 2026 at 6:34 am

    Instead of using hidesBottomBarWhenPushed method. Try your code for hiding tabbar in your ViewController, like

    [self.tabBarController.tabBar setHidden:YES];
    

    and for showing tabbar

    [self.tabBarController.tabBar setHidden:NO];
    

    The above one will work, but the problem is it’ll leave an empty space in viewController bottom. To overcome this, set frame to your tabbarController.

    For Hiding, set

    [self.tabBarController.tabBar setFrame:CGRectMake(0, 480, 320, 50)]
    

    For Showing, set

    [self.tabBarController.tabBar setFrame:CGRectMake(0, 430, 320, 50)]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a navigation based application that have a uinavigataioncontroller containing uitableviewcontrollers. I want
I'm trying to make it so I have a tab bar at the bottom
I am trying to make a navigation bar with <nav> in HTML5 with a
I am trying to make my own navigation bar to get a better understanding
I am trying to make a navigation bar on the left. | 1 |
I am trying to figure out how to show/hide a navigation link based on
I'm a bit new to css. I'm trying to make a horizontal navigation bar
I am trying to make a slideshow-like application in Java using NetBeans. I have
Hi im trying to make my navigation bar do the css focus effect on
I have a problem when trying to make some simple navigation in spring mvc.

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.