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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T22:06:22+00:00 2026-05-17T22:06:22+00:00

I have a plain ol UITableView, and I want its cells to have the

  • 0

I have a plain ol UITableView, and I want its cells to have the delete button on the left. I know this is done using UITableViewCellStyleDelete.

I set up my tableview like so:

adjustmentTable.rowHeight = 35.0; 
[adjustmentTable setEditing:YES animated:YES];
adjustmentTable.allowsSelectionDuringEditing = YES;
adjustmentTable.userInteractionEnabled = YES;

With breakpoints, i know that this function is getting called:

- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath {
    if (indexPath.row < tmpNumOfRows) {
        return UITableViewCellEditingStyleDelete;
    } 
    return UITableViewCellEditingStyleInsert;
}

and in my cellForRowAtIndexPath method, i set the cells editing mode to YES. When my tableview shows up, it has the indentations for the buttons on the left, but no buttons show up, its just a white indentation. Am I missing more steps to get the red/green buttons to show?

  • 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-17T22:06:23+00:00Added an answer on May 17, 2026 at 10:06 pm

    Writing that question me consider my last comment, setting the cells editing property to yes. For some reason, if you do this, the left add/delete buttons do not show up! I removed the code that did that and I see it now.

    Perhaps someone can clarify why this is so with a comment.

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

Sidebar

Related Questions

I have an event handler set up using plain javascript like this: myElement.addEventListener('drop', handleDrop,
I'm using a UITableView in plain mode because I want to have the sticky
When using a plain-style UITableView with a large enough number of cells that the
Shame on me, but i have a plain asp iis6 server and they want
I have a plain text list like this: I am the first top-level list
Here is the deal: I have a UITableView with 2 sections, and I want
I have a plain ruby application (it's not a Web app, so not using
If you have a plain (not grouped) UITableView with a single row, the rest
I have a plain text document, which I want to compile inside LaTeX. However,
I have a plain text file that looks like this - 234234 some text

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.