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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T10:18:09+00:00 2026-06-09T10:18:09+00:00

I am looking at various possible ways to implement delete-edit-copy feature on the UITableViewCell

  • 0

I am looking at various possible ways to implement delete-edit-copy feature on the UITableViewCell elements of a UITableView.

The one I am trying now is based on the usage of the following methods:

        [tableView setEditing:YES animated:YES];

        - (void)tableView:(UITableView *)tableView
commitEditingStyle:(UITableViewCellEditingStyle)editingStyle
    forRowAtIndexPath:(NSIndexPath *)indexPath;

I can see some advantages to use this approach, but there is one problem:

When I try it, I can make the red “Delete” button appear and work, but that is all.

Is there a mechanism by which I could also have “edit” and “copy” buttons ?
Or is it just not possible?

Thanks for any helpful information.

  • 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-09T10:18:10+00:00Added an answer on June 9, 2026 at 10:18 am

    EDIT

    I just understood that you are referring to the cell, not the TableView. For the cell, the following styles are provided:

    • UITableViewCellEditingStyleDelete:
      The cell has the delete editing control; this control is a red circle enclosing a minus sign.
    • UITableViewCellEditingStyleInsert:
      The cell has the insert editing control; this control is a green circle enclosing a plus sign. You may use it for “copy”.
    • UITableViewCellEditingStyleNone: The cell has no editing control.

    Further styles you have to implement on your own.

    Original Answer

    You can use the editButtonItem method of UIViewController. It returns a bar button item that toggles its title and associated state between “Edit” and “Done” (but not “Copy”). The default button action already invokes the setEditing:animated: method.

    If you want another state, your have to create your own BarButtonItem.

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

Sidebar

Related Questions

What are possible different ways using various language constructs to implement a Singleton pattern
I'm trying to figure out how many possible ways there are to combine various
I've been looking through various websites and came across multiple ways to make buttons.
We have a VoIP application imVOX , and we are looking at various ways
I'm trying to create Excel 2007 Documents programmatically. Now, there are two ways I've
I am looking into various OS designs in the hopes of writing a simple
Hey, I'm currently looking for various methods of implementing collision response in 2D video
All, I've spent a fair part of the day looking at various PCAP libraries
I was looking at the various windows styles flags, and I noticed that a
I'm looking into the various methods of rate limiting the Django admin login to

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.