我试图改变 NSTableHeaderView 的高度,高度改变了,但是背景上有一块白色。这是我的代码:
for subView:NSView in topScrollView.subviews {
for subSubView:NSView in subView.subviews {
if (subSubView is NSTableHeaderView) && (subView is NSClipView) {
subSubView.setFrameSize(NSMakeSize(subSubView.frame.size.width, subSubView.frame.size.height + 20))
subView.setFrameSize(NSMakeSize(subView.frame.size.width, subView.frame.size.height + 20))
}
}
}
谢谢帮忙~