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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T13:44:47+00:00 2026-05-11T13:44:47+00:00

I have a way of hiding the back button used by the navigation controller.

  • 0

I have a way of hiding the back button used by the navigation controller. It’s set by the previous controller, not the one managing the current view, and that makes it tricky to get to. I needed to do this in editing mode so that I could prevent the user from navigating away from the screen.

if(self.editing) {     // Get rid of the back button        UIView *emptyView = [[UIView alloc] init];;     UIBarButtonItem *emptyButton = [[[UIBarButtonItem alloc] initWithCustomView:emptyView] autorelease];     [self.navigationItem setLeftBarButtonItem:emptyButton animated:YES]; } else {     // Restore the back button     [self.navigationItem setLeftBarButtonItem:nil animated:YES];         } 

Is there a better way to do this?

  • 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. 2026-05-11T13:44:48+00:00Added an answer on May 11, 2026 at 1:44 pm

    use this to hide back button

    [self.navigationItem setHidesBackButton:YES] 

    use this to show back button

    [self.navigationItem setHidesBackButton:NO] 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does gettext have a way to warn me about strings that have not been
Do we have a way to view assembly and c code both using gdb.
It looks like the YouTube API does not have a way to stop a
In the latest build of jQuery Mobile, the way to add a back button
I have a page where navigation is handled by hiding and showing preloaded divs
I have an iOS App, designed within a UINavigationController. One of the pushed view
I have a navigation based app. The first view (rootcontroller) starts with three large
I'm looking for a way to have one Gravity Form on a page, but
I have spent way too much time looking for the files owner icon to
Can I have any way to know which is the depth of a child

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.