LEFlatButton
is a UIButton
subclass with a flat style
LEFlatButton is available through CocoaPods. To install it, simply add the following line to your 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];
Contributions are totally welcome.
LEFlatButton is available under the MIT license. See the LICENSE file for more info.