UIButton上的圆angular边框消失了

我有一个四舍五入的UIButton通过XIB初始化的自定义表格视图单元格,它工作正常。 我只是注意到,边框,一个圆形的粉红色边框,现在不出现。 我试着添加一些代码来设置awakeFromNib函数的属性,但是这也没有办法。

 - (void)awakeFromNib { [super awakeFromNib]; [self setupProfileView]; self.contentView.backgroundColor = [UIColor colorWithWhite:0.97f alpha:1.0f]; self.selectionStyle = UITableViewCellSelectionStyleNone; _initialLabel.layer.cornerRadius = _initialLabel.frame.size.width/2; _initialLabel.layer.borderWidth = 2; _initialLabel.layer.borderColor = [UIColor colorWithRed:223.0/255.0 green:158.0/255.0 blue:255.0/255.0 alpha:1].CGColor; NSLog(@"on profile table view cell border width is %f and radius is %f and color is %@", _initialLabel.layer.cornerRadius, _initialLabel.layer.borderWidth, _initialLabel.layer.borderColor); } 

上面打印出我期望的(正确的颜色+半径+宽度),但它不显示在视图中。 这是_initialLabel代码中的唯一参考,所以它不会被设置在代码中的其他地方。

有没有人遇到这个,知道一个修复? 任何想法如何进一步解决这个问题?