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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T02:19:37+00:00 2026-05-21T02:19:37+00:00

This is similar to questions that are asking how to swipe/delete without confirmation: UITableView

  • 0

This is similar to questions that are asking how to swipe/delete without confirmation:

UITableView swipe to delete with no confirmation

My tableview has cells with UITableViewCellEditingStyleDelete set. When the tableview is in editing mode, the cells display a red circle icon with a ‘-‘ inside. To delete the cell, the user taps the red circle, and a Delete button appears. The user must then tap Delete which triggers tableView:commitEditingStyle:forRowAtIndexPath:.

Some of my rows support UITableViewCellEditingStyleInsert. In this scenario the cells display a green circle icon with a ‘+’ inside. Tapping the circle invokes tableView:commitEditingStyle:forRowAtIndexPath: immediately.

I’d like to have tableView:commitEditingStyle:forRowAtIndexPath: invoked immediately when the user taps the initial red-circle icon. That is, no delete-button step.

Any ideas?

Is there a way to provide custom editing controls that slide in from the left like delete/insert? If so, perhaps I could use this mechanism?

  • 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-21T02:19:37+00:00Added an answer on May 21, 2026 at 2:19 am

    I came up with one solution, but it risks rejection. (Does checking for an undocumented class by classname constitute a sdk-agreement violation?)

    Perhaps someone can improve on this?

    Basically, in the context of my custom UITableViewCell, I watch for the delete button (not a UIButton, unfortunately) to be added, then invoke it’s UIControlEventTouchUpInside action. With a bit of delay so the animations work out:

    - (void) addSubview:(UIView *)view
    {
        if ([NSStringFromClass([view class]) isEqualToString:@"UITableViewCellDeleteConfirmationControl"]) 
        {
    
            UIControl* c = (UIControl*)view;
    
            NSArray* actions = [c actionsForTarget: self forControlEvent: UIControlEventTouchUpInside];
    
            [self performSelector: NSSelectorFromString( [actions lastObject] ) withObject: view afterDelay: .25];
    
            return;
        }
    
        [super addSubview: view];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've seen a few similar questions to this one, but none that were quite
I know that this is a repeated question. I have found very similar questions
This is similar to a question that has already been asked. However, I am
Similar to this question I have a custom subclass of UITableViewCell that has a
I apologize in advance for asking this question, I know similar questions have already
I realize that there are other posts asking similar questions, but do not quite
There maybe some simlar questions to this but I can't see anything that really
I asked a similar question about this previously, but I did not specify that
This question is similar to GWT Table that supports sorting, scrolling and filtering However
Similar to this question: link However I have already mastered that. My problem is

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.