Я пытаюсь установить фон ячейки своего UITableViewCells, но у меня возникают проблемы с цветом фона UIAccessoryView. Не меняется.
Кто-нибудь может помочь мне сделать цвет фона UIAccessoryView прозрачным (или вообще любым другим цветом)?
Это мой код
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];
}
Вот изображение, иллюстрирующее проблему