2

我有大部分有效的代码

[self.disclosureButton setBezelStyle:NSDisclosureBezelStyle];
[self.disclosureButton setButtonType: NSPushOnPushOffButton];
[self.disclosureButton setTitle:nil];
[self.disclosureButton highlight:NO];

但是,当我按下按钮时,它会变成黑色以指示按下。如何让它停止改变颜色?

4

1 回答 1

1

您看到的行为对于 Cocoa 披露三角形来说听起来是正确的,所以我会说您的代码是成功的。

于 2010-02-02T23:24:17.783 回答