目录
1.1 初始化Button
1.2 Button样式
1.1 初始化Button
NSButton *button = [[NSButton alloc]init];
[button setTitle:@"确认签收"];
[button setTarget:self];
button.tag = 1000+row;
[button setAction:@selector(buttonClick:)];
[bgView addSubview:button];
1.2 Button样式
[button setBezelStyle:NSRegularSquareBezelStyle];
(1)NSRoundedBezelStyle
nsbutton1.png
(2)NSSmallSquareBezelStyle
nsbutton2.png
(3)NSRoundRectBezelStyle
nsbutton3.png
(4)NSTexturedRoundedBezelStyle
nsbutton4.png
(5)NSTexturedSquareBezelStyle
nsbutton5.png
(6)NSRecessedBezelStyle
nsbutton6.png
(7)NSDisclosureBezelStyle
nsbutton7.png
(8)NSShadowlessSquareBezelStyle
nsbutton8.png
(9)NSHelpButtonBezelStyle
nsbutton9.png
(10)NSRoundedDisclosureBezelStyle
nsbutton10.png
(11)NSCircularBezelStyle
nsbutton11.png
(12)NSRegularSquareBezelStyle
nsbutton12.png
(13)NSInlineBezelStyle
nsbutton13.png
网友评论