美文网首页iOS常用
ios UITableviewCell加白色边框

ios UITableviewCell加白色边框

作者: 哪有猫不吃鱼 | 来源:发表于2020-11-13 14:29 被阅读0次

//线条宽度

    cell.layer.borderWidth = 1;

    // 设置边框的颜色

    cell.layer.borderColor = [UIColor whiteColor].CGColor;

    // 设置UIView的边框为圆角和展现

    cell.layer.cornerRadius = 10;

    //自动遮罩不可见区域,超出的不显示

    cell.layer.masksToBounds = true

相关文章

网友评论

    本文标题:ios UITableviewCell加白色边框

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