- (void)drawRect:(NSRect)dirtyRect { [super drawRect:dirtyRect]; [[NSColor clearColor] setFill]; NSRectFill(self.bounds); self.wantsLayer = YES; self.layer.cornerRadius = 8; self.layer.masksToBounds = YES; } 相关文章: 2021-11-23 2022-12-23 2022-12-23 2022-12-23 2022-12-23 2022-12-23 2022-12-23 2021-04-11