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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T00:03:53+00:00 2026-05-16T00:03:53+00:00

HI I am developing an application where the NavigationBar at the top is hidden

  • 0

HI I am developing an application where the NavigationBar at the top is hidden using this code:

- (void) viewWillAppear:(BOOL)animated
{
    [self.navigationController setNavigationBarHidden:YES animated:animated];
    [super viewWillAppear:animated];
}

This means that once on this page there is no back Button to press to go back which means I have to create an IBAction which makes the view change back to the previous one.

I tried creating the IBAction which I use to go to the next page such as this one:

-(IBAction)switchToGettingHere:(id)sender
{
 if(self.gettingHereViewController == nil)
 {
  GettingHereViewController *gettingHere = [[GettingHereViewController alloc]
             initWithNibName:@"GettingHereView" bundle:[NSBundle mainBundle]];
  self.gettingHereViewController = gettingHere;
  [gettingHere release];
 } 
 [self.navigationController pushViewController:self.gettingHereViewController animated:YES];
}

but that didn’t work. Any idea how to make a button perform the same as the standard back button?

  • 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-16T00:03:54+00:00Added an answer on May 16, 2026 at 12:03 am

    Why not just do (from the controller that doesn’t have the navigation bar shown):

    -(IBAction)switchToGettingHere:(id)sender
    {
     [self.navigationController popViewControllerAnimated:YES];
    }
    

    This will pop the currently viewController off the stack and return you from whence you came.

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

Sidebar

Related Questions

Thanks for your time. I am developing application using PHP. In this for some
I`m developing an application using Spring WebFlow 2, Facelets and JSF. One of my
I'm developing an application for Windows Mobile Devices using Visual Studio .NET 2008 whose
I'm developing an application targeting .NET Framework 2.0 using C# for which I need
I am developing an application using MVC Preview 5. I have used typed views.
I'm developing an iPhone application and I'm trying to do this: I want an
I'm developing application in WPF but some components are written using WinForms. I wan't
I am developing application application using C++ VS 2008. Now I need to either
I'm currently developing application using DirectSound for communication on an intranet. I've had working
Am new to android, am developing application with websevices using json parsing with httpget

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.