当前位置: 代码迷 >> 综合 >> iOS设置view的边框、圆角、颜色
  详细解决方案

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

热度:43   发布时间:2024-01-20 19:37:36.0


 

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];

  相关解决方案