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.
我是 mac 新手,我正在实现 nsbutton,我有两个图像,一个处于启用模式,另一个是禁用状态,我想根据启用和禁用 ([button setEnabled:YES]) 更改图像,我该怎么做,
类的使用setImage:方法NSButton。
setImage:
NSButton
[button setImage:anImage];