QBFlatButton is a flat style button.
#import "QBFlatButton.h"
in your ViewController
A surface color of the button.
@property (nonatomic, retain) UIColor *faceColor
A side color of the button.
@property (nonatomic, retain) UIColor *sideColor
A corner radius of the button.
@property (nonatomic, assign) CGFloat radius
A button height in normal state.
@property (nonatomic, assign) CGFloat margin
A button depth when the button pushed down.
@property (nonatomic, assign) CGFloat depth
QBFlatButton *btn = [QBFlatButton buttonWithType:UIButtonTypeCustom];
btn.frame = CGRectMake(90, 200, 140, 50);
btn.faceColor = [UIColor colorWithRed:0.333 green:0.631 blue:0.851 alpha:1.0];
btn.sideColor = [UIColor colorWithRed:0.310 green:0.498 blue:0.702 alpha:1.0];
btn.radius = 6.0;
btn.margin = 4.0;
btn.depth = 3.0;
btn.titleLabel.font = [UIFont boldSystemFontOfSize:16];
[btn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
[btn setTitle:@"Button" forState:UIControlStateNormal];
[self.view addSubview:btn];
QBFlatButton is released under the MIT License, see LICENSE.txt.