iOS UI基础-18.0 UIView

设置边框

        UIView *bgView = [[UIView alloc] init];
        bgView.backgroundColor = [UIColor whiteColor];
        self.bgView = bgView;
        bgView.layer.borderColor = Color_E8E8E8.CGColor;
        bgView.layer.borderWidth = Line_side_heihgt; 
原文地址:https://www.cnblogs.com/jys509/p/5027503.html