CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.
TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Nov 2017 |
Maintained by Sunnyyoung.
A customized NSButton
with modern flat style like bootstrap.
macOS 10.9 and above.
Dragging SYFlatButton.h
and SYFlatButton.m
to your project.
NSButton
Button Style
to Square
in order to change the button's heightButton Class
to SYFlatButton
See more customizable style from SYFlatButton.h
SYFlatButton *button = [[SYFlatButton alloc] initWithFrame:CGRectMake(20.0, 20.0, 60.0, 30.0)];
button.title = @"Code";
button.momentary = YES;
button.cornerRadius = 4.0;
button.backgroundNormalColor = [NSColor blueColor];
button.backgroundHighlightColor = [NSColor redColor];
[self.view addSubview:button];
Inspired by FlatButton.
The MIT License.