I have UIViewa custom one UITableViewCell, and I want to combine only the lower left and right corners of this view. I am doing the following, but it does not work:
- (void)awakeFromNib {
CAShapeLayer * maskLayer = [CAShapeLayer layer];
maskLayer.path = [UIBezierPath bezierPathWithRoundedRect: _viewForTags.bounds byRoundingCorners: UIRectCornerBottomLeft | UIRectCornerBottomRight cornerRadii: (CGSize){7.0, 7.0}].CGPath;
_viewForTags.layer.mask = maskLayer;
}
I usually achieve this in regular view dispatchers in a method viewWillLayoutSubviews, and it works fine, but there is no such method when I subclass UITableViewCell.
Any idea how I can get around two view angles in a subclass UITableViewCell?
hyd00 source
share