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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T22:14:36+00:00 2026-06-04T22:14:36+00:00

in my tableview i use a background image for my cells (totally black image)

  • 0

in my tableview i use a background image for my cells (totally black image) and i also want to use accessory indicator in my cells. in cell’s properties window i set AccessoryDisclosureIndicator

in my .m file i put these codes for tableview:

- (UITableViewCellAccessoryType)tableView:(UITableView *)tableView accessoryTypeForRowWithIndexPath:(NSIndexPath *)indexPath{

    return UITableViewCellAccessoryDisclosureIndicator;

}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    static NSString *CellIdentifier = @"Cell";


    UITableViewCell *cell = (UITableViewCell *) [tableView dequeueReusableCellWithIdentifier:CellIdentifier];

    if (cell == nil) {
        cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier];
        cell.backgroundColor = [UIColor clearColor];

    }

    cell.textLabel.backgroundColor=[UIColor clearColor];
    cell.textLabel.text=[arrMagaza objectAtIndex:indexPath.row]; 
    cell.textLabel.textColor=[UIColor whiteColor];


    NSString *distance=[arrDistance objectAtIndex:indexPath.row];
    cell.detailTextLabel.backgroundColor=[UIColor clearColor];
    cell.detailTextLabel.textColor=[UIColor whiteColor];
    cell.detailTextLabel.text=[distance stringByAppendingFormat:@" km"];

    cell.accessoryType=UITableViewCellAccessoryDisclosureIndicator;

    return cell;
}


- (void) tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath {
   cell.backgroundView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"tablecell.png"]];
   tableView.backgroundColor=[UIColor blackColor];
   tableView.separatorColor= [UIColor clearColor];
   cell.accessoryType=UITableViewCellAccessoryDisclosureIndicator;
}

but the accessory indicator not shown on the view when i run the app.
what am i doing wrong? is the problem about background image that i use for my cells?

  • 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-04T22:14:38+00:00Added an answer on June 4, 2026 at 10:14 pm
    - (UITableViewCellAccessoryType)tableView:(UITableView *)tableView accessoryTypeForRowWithIndexPath:(NSIndexPath *)indexPath
    

    This method is deprecated now, so no need to implement this method. Try removing everything else looks fine.

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

Sidebar

Related Questions

I try to set up a tableView. I use standard cells for all sections'
I want to use the background color/pattern of the grouped tableview in my view,
When I set repeating background image to a UITableView by using the following code
Am trying to use 3 images as the background for a cell. a top
I was wondering how I actually use background in normal tableview(non grouped). For example
I use a grouped tableview and custom cells which I load from nib. When
Please refer to the image. If I use [self.tableView initWithFrame:CGRectMake(0, 0, 320, 320) style:UITableViewStyleGrouped];
I want to have a background image behind my UITableView . This works fine,
How can I give a tableView cell background color the fade effect as soon
How can I give a tableView cell background color the fade effect as soon

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.