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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T04:28:27+00:00 2026-05-14T04:28:27+00:00

I have a view with navigation bar control on the top. The view is

  • 0

I have a view with navigation bar control on the top. The view is in the second level with a “back” button is displayed on the left by default. In my view class, I added a default navigation edit button on the right:

self.navigationbarItem.rightButtonItem = self.editButtonItem;

with this line of code, an edit button is on the right side, and when it is clicked, the view (table view) becomes editable with delete mark on the left for each row. After that, the edit button’s caption becomes “done”. All those are done by the default edit button built in the navigation control, I think.

I would like to add an add button the left, or replace “back” button when edit is clicked. I guess I have to implement some kind of delegate in my view class. This would provide a place to plug in my code to add the add button on the left when edit button is clicked, and to restore “back” button back when the done button is clicked. If so, what’s the delegate? Or is there any other way to achieve it?

  • 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-14T04:28:27+00:00Added an answer on May 14, 2026 at 4:28 am

    I do it like this (in my table view controller):

        editButton = [[UIBarButtonItem alloc] initWithTitle:@"Edit" style:UIBarButtonItemStyleBordered target:self action:@selector(toggleEditing)];
        editButton.possibleTitles = [NSSet setWithObjects:@"Edit", @"Done", nil];
        self.navigationItem.rightBarButtonItem = editButton;
    
    
    - (void)toggleEditing {
        // Keep track of whether your editing or not here
        // and show/hide the 'add' button accordingly
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have Navigation View controller that contains web view. The top bar of Navigation
I have a segment control added to the navigation bar. It works fine. When
I have a View With UINavigationBar Navigation Bar only permits me the button at
I have root view with both tab bar and navigation bar visible at the
I have a view MainView that has a navigation bar without any navigation controller,
I have a modal view controller, and I want its navigation bar (I think
I have a view which consists of a tableview and a navigation bar. For
I have a view controller hierarchy and the top-most controller is displayed as a
I have a view which has it's own navigation bar and one tableview. I
I have a view that generates a dynamic navigation bar. Within Codeigniter, I just

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.