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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:04:10+00:00 2026-05-28T06:04:10+00:00

I use UIViewController ‘s editButtonItem to control edit mode on my table view. The

  • 0

I use UIViewController‘s editButtonItem to control edit mode on my table view.

The problem is that in most apps, when you swipe a row to delete the element, that edit button changes to “Done” state. That way the user can tap “Done” to stop deleting elements.

Done button in a swipe to delete situation

enter image description here

It doesn’t do this in my app

enter image description here

I guess I could change the title and style of the edit button in tableview:editingStyleForRowAtIndexPath:, but isn’t the point of UIViewController‘s editButtonItem to be automatic?

Thanks.

  • 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-28T06:04:11+00:00Added an answer on May 28, 2026 at 6:04 am

    Implementing these two delegate methods solved it for me.
    Setting the .editing property of the view controller to YES and back to NO.

    - (void)tableView:(UITableView *)tableView willBeginEditingRowAtIndexPath:(NSIndexPath *)indexPath
    {
        self.editing = YES;
    }
    
    - (void)tableView:(UITableView *)tableView didEndEditingRowAtIndexPath:(NSIndexPath *)indexPath
    {
        self.editing = NO;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a number of views that use UITableView. (I use UIViewController and implement
I'want to do an UIViewController that don't use the full screen. The purpose is
I want to use - (void)drawRect:(CGRect)rect to manage some nice output to UIViewController. That
In my app I needed to use a UIViewController to control my tableView instead
Plz guide that how can i use 2 UItableView(or more) in a UIViewController &
I have several dataSources I use for one UIViewController. My view controller uses KeyValue
There is a UIViewController that uses a UIImageView , and that image view is
So I have a UIViewController that has a UITabBar in the view. I want
I always use UIViewController(As RootViewController) to switch the view of 3 different UIViewControllers. There
I want to use a modal view ( UIViewController ) as a normal view,

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.