自定义NSScroller
override func draw(_ dirtyRect: NSRect) {
NSColor.clear.set()
NSRectFill(dirtyRect)
self.drawKnob()
}
自定义NSScroller
override func draw(_ dirtyRect: NSRect) {
NSColor.clear.set()
NSRectFill(dirtyRect)
self.drawKnob()
}
本文标题:Mac OSX开发-NSScroller背景透明
本文链接:https://www.haomeiwen.com/subject/kwrbxxtx.html
网友评论