KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am trying to set the cell background of my UITableViewCells but I am struggling with the background color of the UIAccessoryView. It does not change. Can anyone help me make the background color of the UIAccessoryView transparent (or actually any other color)? This is my code cell.textLabel.backgroundColor = [UIColor clearColor]; cell.accessoryView.backgroundColor = [UIColor clearColor]; cell.detailTextLabel.backgroundColor = [UIColor clearColor]; cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; if(indexPath.row % 2) { cell.contentView.backgroundColor = [UIColor clearColor]; } else { cell.contentView.backgroundColor = [UIColor redColor]; } Here is an image illustrating the issue
Tags (comma-separated)
Save Edits
Cancel