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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T23:37:06+00:00 2026-06-04T23:37:06+00:00

I have a second confirmation dialog that appears when a user decides to delete

  • 0

I have a second confirmation dialog that appears when a user decides to delete a UITableViewCell. Here is my table view in its normal state:

Normal


And here it is when the whole table goes into editing mode:

Normal editing mode


Now when the user taps one of the red minus signs on the left, the cell goes into delete confirmation mode:

Delete confirmation mode


If the user then taps the delete button that has just appeared, this action sheet appears:

Second confirmation


This is where the problem arises. If the user confirms that they want to delete the map, all is well. But if the cancel button is pressed, the action sheet disappears, but the table view still looks like this:

The delete confirmation button should no longer be in its selected state, and should have hidden itself from view

The issue is that the delete confirmation button should no longer be in its selected state, and should have hidden itself from view. As you can see it hasn’t. My searches in the documentation have ended with no results. I don’t want to setEditing:NO because I want the table to remain in its normal editing state. Any ideas?

Edit 1: Here is what goes on inside tableView:commitEditingStyle:forRowAtIndexPath:

- (void)tableView:(UITableView*)tableView commitEditingStyle:
    (UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath*)indexPath {
    NSInteger finalIndex = [self getFinalIndexForIndexPath:indexPath];

    NSString* mapTitle = ((PreviewDataObject*)[[[SingletonDataController sharedSingleton]
        getImportedOrSavedMapPreviews:masterIdentifierString] 
        objectAtIndex:finalIndex]).titleString;

    UIActionSheetWithIndexPath* sheet = [[UIActionSheetWithIndexPath alloc] initWithTitle:
        [NSString stringWithFormat:@"Are you sure you want to delete the map '%@'?", 
        mapTitle] delegate:self cancelButtonTitle:@"Cancel" 
        destructiveButtonTitle:@"Delete Map" otherButtonTitles:nil];
    sheet.indexPath = indexPath;
    [sheet showFromTabBar:[AppDelegate appDelegate].tabBarController.tabBar];
    [sheet release];
}
  • 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-04T23:37:07+00:00Added an answer on June 4, 2026 at 11:37 pm

    After that, you may as well present an AlertView asking if they really, really, really want to delete.

    The 2-step process of turning on the button and then pressing delete should be plenty of confirmation.

    Doing what you’re doing does not seem to me to be standard practice, and once you get into that area you’re going to find holes in the framework.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a dialog confirmation that must be reused for several controls in a
I have a second .nib file that is a localized version of the main
I have a batch file that installs WinVNC in about 1 second and starts
I have a ListView that contains playlists. If the user wants to edit an
Dialog closes with Cancel result, no exceptions, as if you have pressed its close
I have two email fields on a form to validate that the user entered
How do you handle user stories/acceptance tests that have long chains like this one,
I have a second resx file Strings.ps-ps.resx that I want to point my code
I have a simple Django view that confirms the deletion of an instance. On
we want to have the second biggest element. We first use ANY to exclude

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.