741162830qq
- (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
猜你喜欢
  • 2021-03-31
  • 2022-12-23
  • 2022-02-13
  • 2021-06-24
  • 2022-02-07
  • 2021-09-03
  • 2022-01-20
相关资源
相似解决方案