美文网首页iOS啊
UILabel 边框颜色

UILabel 边框颜色

作者: 然然啊 | 来源:发表于2015-11-21 16:23 被阅读3157次

实现效果

代码

        _bLabel.layer.cornerRadius = 4.;//边框圆角大小
        _bLabel.layer.masksToBounds = YES;
        _bLabel.layer.borderColor = [UIColor colorWithRed:0.98 green:0.61 blue:0.21 alpha:1].CGColor;//边框颜色
        _bLabel.layer.borderWidth = 1;//边框宽度

相关文章

网友评论

    本文标题:UILabel 边框颜色

    本文链接:https://www.haomeiwen.com/subject/cpalhttx.html