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 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

I have a navigation based app. The first view (rootcontroller) starts with three large
I need to have two way communication between threads in Tcl and all I
Does .net have a way to determine whether the local filesystem is case-sensitive?
Does Visual Studio .NET have a way to toggle word-wrap on and off? I
VBScript doesn't appear to have a way to include a common file of functions.
I really want to be able to have a way to take an app
I want my app to loop in python but have a way to quit.
Anybody have a slicker way to do this? Seems like it should be easier
Does anyone have a good way to build MSI (vdproj) projects using MsBuild or
What would be the best way to have a list of items with a

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.