所以我有一个快速问题我有下面的方法根据滑块的值设置窗口的alpha值,但窗口的内容也变得半透明,最终随着窗户消失。更改窗口背景的alpha,而不是整个窗口
有没有办法改变窗口的alpha值而不是里面的内容视图?
- (IBAction)changeTransparency:(id)sender {
// Set the window's alpha value. This will cause the views in the window to redraw.
[self.window setAlphaValue:[sender floatValue]];}
谢谢,萨米人。