iOS-UIView加边框以及边框颜色
UIView *bgView = [[UIView alloc] initWithFrame:CGRectMake(100, 100, 200,200 )];
//边框宽
bgView.layer.borderWidth = 1;
//边框颜色
bgView.layer.borderColor = [[UIColor lightGrayColor] CGColor];
UIView *bgView = [[UIView alloc] initWithFrame:CGRectMake(100, 100, 200,200 )];
//边框宽
bgView.layer.borderWidth = 1;
//边框颜色
bgView.layer.borderColor = [[UIColor lightGrayColor] CGColor];