iosuitableviewswift2accessoryview

UITableView checkmark has a white background


I customised tableview cell style with an imageview filling the entire cell. A checkmark is displayed when an UIAlertAction is called. But it displays a white box around the checkmark.

The background image shrinks when checkmark is displayed:

1

and without the checkmark:

2

I have tried:

let color = cell.contentView.backgroundColor cell.backgroundColor = color

in the tableview(cellforrowatindexpath) but it doesn't work.

How do I remove this white accessoryview?


Solution

  • Instead of accessoryview you can use imageview to show Checked record.