Accessory type is overriding index click on table view

When I click on the pointer on the right, if I don't click on the rightmost pixel, it activates the click of the accessory button. How do I reduce the width of the accessory button so that the bars don't override the index list?

func tableView(tableView: UITableView,
    accessoryButtonTappedForRowWithIndexPath indexPath: NSIndexPath) {
        self.container = self.fetchedResultsController?.objectAtIndexPath(indexPath) as? NSManagedObject
}

      

Perhaps it's contradictory:

    cell.imageView.contentMode = UIViewContentMode.ScaleToFill;
    cell.imageView.layer.cornerRadius = 42.5; // 85 x 85
    cell.imageView.layer.masksToBounds = true;
    cell.imageView.transform = CGAffineTransformMakeScale(0.4, 0.4);
    cell.imageView.layer.borderWidth = 3;
    cell.imageView.layer.borderColor = UIColor(white:0.2, alpha:0.4).CGColor;

      

+3


source to share





All Articles