代码改变世界

iOS UI基础-18.0 UIView

2015-12-07 21:29  jiangys  阅读(250)  评论(0编辑  收藏  举报

设置边框

        UIView *bgView = [[UIView alloc] init];
        bgView.backgroundColor = [UIColor whiteColor];
        self.bgView = bgView;
        bgView.layer.borderColor = Color_E8E8E8.CGColor;
        bgView.layer.borderWidth = Line_side_heihgt;