title: Round only 2 corners of a UIView in custom UITableViewCell - iOS
body: <p>I have a <code>UIView</code> in a custom <code>UITableViewCell</code> and I want to round just bottom Left and Right corners of that view. I'm doing the following, but it's not working:</p>
  
  <pre><code>- (void)awakeFromNib {
      // Initialization code
  
      CAShapeLayer * maskLayer = [CAShapeLayer layer];
      maskLayer.path = [UIBezierPath bezierPathWithRoundedRect: _viewForTags.bounds byRoundingCorners: UIRectCornerBottomLeft | UIRectCornerBottomRight cornerRadii: (CGSize){7.0, 7.0}].CGPath;
  
      _viewForTags.layer.mask = maskLayer;
  }
  </code></pre>
  
  <p>I usually achieve this in usual View Controllers in the <code>viewWillLayoutSubviews</code> method and it works perfectly, but there's no such method when I subclass <code>UITableViewCell</code>.</p>
  
  <p>Any idea how can I round 2 corners of a view in a subclassed <code>UITableViewCell</code>?</p>