UILabel *label = [[UILabel alloc] init];
label.backgroundColor = [UIColor redColor];
label.layer.borderColor = [[UIColor grayColor]CGColor];
label.layer.borderWidth = 0.5f;
label.layer.masksToBounds = YES;
label.layer.cornerRadius = 5
#import< QuartzCore/QuartzCore.h>
网友评论