UILabel Background Color Leaks to Border
问题 I'm creating a UILabel to which I set the background color and corner radius with the following code: self.scoreLabel.backgroundColor = [UIColor DISRed];// custom red` self.scoreLabel.layer.masksToBounds = YES; self.scoreLabel.layer.cornerRadius = self.scoreLabel.frame.size.width/2; self.scoreLabel.layer.borderWidth = 8.0; self.scoreLabel.layer.borderColor = [[UIColor DISNavy] CGColor]; However the background's color seems to be leaking to the edge of the border (see image). Any ideas why?