+ (instancetype)setButtonWithFrame:(CGRect)frame addTarget:(id)addTarget action:(SEL)action ControlEvents:(UIControlEvents)ControlEvents title:(NSString *)title backgroundColor:(UIColor *)backgroundColor layer:(CGFloat)layer
{
UIButton * button = [UIButton buttonWithType:UIButtonTypeSystem];
button.frame = frame;
[button setTitle:title forState:UIControlStateNormal];
[button addTarget:self action:action forControlEvents:UIControlEventTouchUpInside];
button.backgroundColor = backgroundColor;
button.layer.cornerRadius = layer;
return button;
}