天天看点

View 的圆角和边框

  一般视图的圆角和边框设置

label.layer.cornerRadius = 2;//设置那个圆角的有多圆
 label.layer.borderWidth = 1;//设置边框的宽度,当然可以不要
 label.layer.borderColor = [[UIColor grayColor] CGColor];//设置边框的颜色
 label.layer.masksToBounds = YES;