iOS设置view的边框、圆角、颜色


 

UIView *viewVC = [[UIView alloc]initWithFrame:CGRectMake(100,100,70,70)];

viewVC.layer.borderWidth = 5;

viewVC.layer.cornerRadius = 13;

viewVC.layer.borderColor = [UIColor orangeColor].CGColor;

[self.view insertSubview:viewVC atIndex:1];

你可能感兴趣的:(ios,边框)