title: Set colored border for UITableViewCell
body: <p>I want my tableview cell to have colored border and rounded corners. Thats what i tried:</p>
  
  <pre><code> // Color
  
      [cell.contentView.layer setBorderColor:[UIColor colorWithHexString:@"dbd7d7"].CGColor];
  
      // Rounded corners
  
      [cell.layer setCornerRadius:7.0f];
      [cell.layer setMasksToBounds:YES];
      [cell.layer setBorderWidth:2.0f];
      cell.layer.borderColor = [UIColor colorWithHexString:@"dbd7d7"].CGColor;
  </code></pre>
  
  <p>However, there is odd "white triangles" on right and left borders. Please take a look:</p>
  
  <p><a href="https://i.stack.imgur.com/q5Ep0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/q5Ep0.png" alt="enter image description here"></a></p>
  
  <p>How to fix that?</p>