Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
NSWindow我通过选择“内容边框-大底边框”在 IB 中添加了一个底栏。并且我在底部栏添加了一个自定义图像按钮,但是当我按下按钮时,按钮的背景变成了白色,为什么?
NSWindow
这是按下按钮时的效果:
将按钮的类型更改为Momentary Change。您可以在属性检查器中更改它:
或以编程方式更改:
[button setButtonType:NSMomentaryChangeButton];