I\'m currently looking at a UILabel with the property addMessageLabel.layer.cornerRadius = 5.0f; On a device with iOS 7.0 installed, it has rounded corners. On a de
addMessageLabel.layer.cornerRadius = 5.0f;
Try the followings,
[[addMessageLabel layer] setCornerRadius:5.0f]; [[addMessageLabel layer] setMasksToBounds:YES]; //or [addMessageLabel setClipsToBounds:YES];
Swift
addMessageLable.layer.cornerRadius = 5.0 addMessageLable.layer.masksToBounds = true //or addMessageLable.layer.clipsToBounds = true