Questions tagged «nsview»

18
更改NSView背景颜色的最佳方法
我在寻找改变的最佳途径backgroundColor的NSView。我还希望能够为设置适当的alpha蒙版NSView。就像是: myView.backgroundColor = [NSColor colorWithCalibratedRed:0.227f green:0.251f blue:0.337 alpha:0.8]; 我注意到NSWindow有这种方法,我也不喜欢NSColorWheel或NSImage背景选项,但如果它们是最好的,那就愿意使用。
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.