Corner Radius property of UILabel is not working in iOS 7.1 Corner Radius property of UILabel is not working in iOS 7.1 ios ios

Corner Radius property of UILabel is not working in iOS 7.1


Add the next line to your code:

// Swift:originaltagLbl.layer.masksToBounds = true// Objective C:originaltagLbl.layer.masksToBounds = YES;

For information see this SO answer, or read documentation.


Swift 3/4/5

    yourlabel.layer.cornerRadius = 8 //your desire radius    yourlabel.layer.masksToBounds = true


Try setting the UILabel's clipsToBounds property to YES