Mac - 设置NSButton 的背景色
- (void)drawRect:(NSRect)dirtyRect { [super drawRect:dirtyRect]; [[NSColor clearColor] setFill]; NSRectFill(self.bounds); self.wantsLayer = YES; self.layer.cornerRadius = 8; self.layer.masksToBounds = YES; }
如果错过了一天,那么真的就错过一天。不抛弃,不放弃。点一盏心灯给自己。