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-07-10
  • 2021-06-28
  • 2021-09-24
  • 2021-11-04
  • 2021-08-03
  • 2021-08-03
  • 2021-11-13
  • 2021-11-27
猜你喜欢
  • 2021-09-16
  • 2021-03-31
  • 2021-09-16
  • 2021-11-01
  • 2021-12-01
  • 2021-06-24
  • 2021-04-11
相关资源
相似解决方案