Mac - 设置NSButton 的背景色
时间:2016-01-25 12:48:50
收藏:0
阅读:1189
- (void)drawRect:(NSRect)dirtyRect { [super drawRect:dirtyRect]; [[NSColor clearColor] setFill]; NSRectFill(self.bounds); self.wantsLayer = YES; self.layer.cornerRadius = 8; self.layer.masksToBounds = YES; }
评论(0)