I am trying to change the default button of a detailDisclosureButton of a UITableViewCell.
I am able to change the button by doing the following:
button.frame = CGRect(x: 0, y: 0, width: 10, height: 10)
button.backgroundColor = UIColor.black
cell.accessoryView = button
However, in this case I lose the carat for the disclosure indication to the right of the detail button. That is because defining an accessoryView ignores the value of the accessoryType according to the documentation.
Is there anyway to have the accessoryType be a detailDisclosureButton and to define a custom image for the button. i.e. custom button and keep the carat for disclosure?