I know that in iOS 3.0+ I can use
label.layer.cornerRadius = xxx;
to round all four corners of a UILabel (as a UIView subclass), but I wa
You can do this using CALayers and masks
CAShapeLayer *maskLayer = [CAShapeLayer layer]; maskLayer.path = maskPath.CGPath; label.layer.mask = maskLayer;
where maskPath is a UIBezierPath set up using bezierPathWithRoundedRect:byRoundingCorners:cornerRadii
bezierPathWithRoundedRect:byRoundingCorners:cornerRadii