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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T11:06:50+00:00 2026-06-08T11:06:50+00:00

I am facing a problem, i have a tab application in which i made

  • 0

I am facing a problem, i have a tab application in which i made the second controller as a navigation controller and just drag and dropped a table view over this.

My table is working fine with all the elements coming in from the database.

My problem is that i want a edit button when clicked,the table goes into the editing mode and would allow me to delete rows from the table. I am not able to understand how can i do that i tried this

- (void)viewDidLoad
{

      self.navigationItem.rightBarButtonItem = self.editButtonItem;



    [super viewDidLoad];

It brings a edit button on the right side of the navigation controller but when i click it doesn’t changes the table in editing mode.

I know i have to implement this method but i am not getting what to write in this

- (void)setEditing:(BOOL)editing animated:(BOOL)animated {

}

Everywhere on other forums i find written tableview —– , what is this table view is it a instance for the UITableView class ?

Help me out in the code stuff
Please

  • 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-08T11:06:52+00:00Added an answer on June 8, 2026 at 11:06 am

    You have to asign the following button in the – (void)viewDidLoad

    self.navigationItem.rightBarButtonItem = self.editButtonItem;
    

    and then implement the following methods:

    // Override to support conditional editing of the table view.
    - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath 
    {
        // Return NO if you do not want the specified item to be editable.
        return YES;
    }
    
    - (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath 
    {
        return UITableViewCellEditingStyleNone;
    }
    
    
    - (BOOL)tableView:(UITableView *)tableView shouldIndentWhileEditingRowAtIndexPath:(NSIndexPath *)indexPath 
    {
        return NO;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application with tab bar and 3 different View Controller. one of
I have just installed RVM in my machine and facing problem with rvmrc file,
I have facing problem in scrolling webview in verticlly, actually i have scroll view
I'm facing a problem here : I have two tables : A users table
I am facing the following problem : I have a namespace Exception\* , which
I am facing a problem: I have two view controllers, viewController1 , and viewController2
Im facing following problem I have created mentioned condition, but when I choose y
i am facing one problem.i have a class named ReportingService and it should be
hi im new to jquery and im facing these problem i have these code
I am facing a strange problem and have no idea how to fix this

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.