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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T08:54:08+00:00 2026-05-29T08:54:08+00:00

I have a UITableView with custom UITableViewCells. The table has two sections, the first

  • 0

I have a UITableView with custom UITableViewCells.

  1. The table has two sections, the first section has a single row with a UITextField and can only be edited in terms of the text. This section & row cannot be edited from a UITableView perspective

  2. The second section is a list of cells that are generated from an NSArray. These cells are once again custom UITableViewCells comprising of two UITextFields. These cells can be edited from a UITableView perspective, in the sense that the user can delete and insert rows.

  3. In my designated initializer I have specified self.tableView.editing = YES, also I have implemented the method canEditRowAtIndexPath to return YES.

Problem Statement

The table view does not enter editing mode. I do not see the delete buttons or insert buttons against the rows of section 2. What am I missing?

  • 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-29T08:54:10+00:00Added an answer on May 29, 2026 at 8:54 am

    just a suggestion, check whether your controller fit to these requirements :

    i use usual UIViewController and it works fine – you need to :

    1. make your controller a delegate of UITableViewDelegate, UITableViewDataSource
    2. implement – (void)setEditing:(BOOL)editing animated:(BOOL)animated
    3. programmatically add EDIT button – self.navigationItem.rightBarButtonItem = self.editButtonItem (if you add EDIT button from builder you will need to call setEditing : YES manually)

    Piece of code 🙂

    - (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath 
    {
        return UITableViewCellEditingStyleDelete;
    }
    
    - (void)setEditing:(BOOL)editing animated:(BOOL)animated 
    {
        [super setEditing:editing animated:animated];
        [self.tableView setEditing:editing animated:YES];
    }
    
    - (void)tableView 
        :(UITableView *)tableView didSelectRowAtIndexPath 
        :(NSIndexPath *)indexPath
    {
        [self.tableView deselectRowAtIndexPath:indexPath animated:NO];
        [self.navigationController popViewControllerAnimated:YES];
    }
    
    - (void)viewDidLoad
    {
        [super viewDidLoad];
        self.navigationItem.rightBarButtonItem = self.editButtonItem;
    }
    
    // do not forget interface in header file
    
    @interface ContactsController : ViewController<
        UITableViewDelegate,
        UITableViewDataSource>
    

    Profit!

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

Sidebar

Related Questions

I have a UITableView with two custom cells and each of them has a
I have a UITableView with custom UITableViewCells in it. These cells can be opened
I have a UITableView comprised of custom UITableViewCells with some text and a button
I have a UITableView with two sections, which are both empty when my application
I have a UITableView of custom UITableViewCells which looks like this: [ CELL 0
I have a grouped table view that utilizes two different custom table cells. When
I have built a custom UITableView with two cells. In one cell I have
I have a UITableView that uses a variety of custom UITableViewCells . I'd like
I have a custom UITableViewCell that has a UISegmentedControl object. My UITableView (questionnaire form)
I have a UITableView with custom UITableViewCells. Each cell asynchronously loads an image and

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.