2
CustomView *customView = [[CustomView alloc] init];
[self.window.contentView addSubview:customView];
我怎样才能让customView.frame.size.height
恒等于contentView.frame.size.height
当窗口大小调整,并在同一时间customView.frame.size.width = 20;
?的NSView自动调整大小以适应内容查看