LEFlatButton
是一个具有平面样式的 UIButton
子类
LEFlatButton 可通过 CocoaPods 访问。要安装它,只需将以下行添加到您的 Podfile 中
pod "LEFlatButton"
LEFlatButton *button = [[LEFlatButton alloc] initWithFrame:(CGRect){0, 0, 240, 40}];
button.layer.cornerRadius = 6.0f;
button.layer.masksToBounds = YES;
button.backgroundColor = [UIColor redColor];
[button setFlatTitle:@"Red Button"];
[self.view addSubview:button];
LEFlatButton 基于 MIT 许可证。有关更多信息,请参阅 LICENSE 文件。