1. 程式人生 > >UILabel設定圓角和背景

UILabel設定圓角和背景

self.upleverLabel.layer.cornerRadius = 3.0;

self.upleverLabel.backgroundColor = [UIColorcolorWithHexString:@"#b22222"withAlpha:1];

    [[self.upleverLabellayer] setMasksToBounds:YES];