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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T16:45:30+00:00 2026-05-30T16:45:30+00:00

I have UITableView with custom table row. What I need is to have possibility

  • 0

I have UITableView with custom table row. What I need is to have possibility to reorder rows. so in ViewDidLoad i add:

- (void)viewDidLoad {
  [super viewDidLoad];
    [self.myTableView setEditing: YES animated: YES];
}

also add next methods:

- (BOOL)tableView:(UITableView *)tableView
    canEditRowAtIndexPath:(NSIndexPath *)indexPath {
    return YES;
}


- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView
    editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath {
  return UITableViewCellEditingStyleNone;
}


- (BOOL)tableView:(UITableView *)tableView
    shouldIndentWhileEditingRowAtIndexPath:(NSIndexPath *)indexPath {
    return NO;
 }


    - (BOOL)tableView:(UITableView *)tableView
    canMoveRowAtIndexPath:(NSIndexPath *)indexPath {
   return YES;
 }

Also I set bg color for my custom table row:

- (UITableViewCell *)tableView:(UITableView *)tableView 
     cellForRowAtIndexPath:(NSIndexPath *)indexPath {
NSString *customTableRow = @"customTableRow";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:
    customTableRow];
if (cell == nil) {
    NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@"customTableRow"
        owner:self options:nil];
    if (nib.count > 0) {
        cell = self.customTableRow;
    }
}
cell.contentView.backgroundColor = [UIColor colorWithRed:(228.0f/255.0f)
    green:237.0f/255.0f blue:244.0f/255.0f alpha:1.0];
return cell;
}

And then I run my app and I had an unexpected view:

enter image description here

So I have tow questions:
1.So why it so ? Reorder button is not transparent ??
2.How to change that button to my on image ??

  • 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-30T16:45:31+00:00Added an answer on May 30, 2026 at 4:45 pm

    The problem is that you’re changing the background color of the contentView. Have you tried changing the background color of the cell itself in -tableView:willDisplayCell: forRowAtIndexPath:?

    • 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 custom UITableViewCells. The table has two sections, the first
I have a UITableView put in edited mode. self.tableView.editing = YES; In this table
I have a UITableView with two custom cells and each of them has a
I have a UITableView whose cells contain custom ImageViews that asynchronously load the images
I have a UITableView that displays various nsstrings from a custom object called a
On my iphone app, I have a UITableView in edit mode, containing custom UITableViewCell.
I have UITableView.when i click on it's 1 st row one another UITableView opens
I have a UITableView populated with a location-based datasource. I'm calling [self updateView]; to
I have a UITableView , which I am controlling from a custom UIViewController .
I have UITableView with Custom View on it. For the bottom of the tableview,

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.