开发者

How to make a Cocoa Disclosure Triangle

I have most of the code that works

[self.开发者_如何学运维disclosureButton setBezelStyle:NSDisclosureBezelStyle];
[self.disclosureButton setButtonType: NSPushOnPushOffButton];
[self.disclosureButton setTitle:nil];
[self.disclosureButton highlight:NO];

However, when I press the button, it turns black to indicate the press. How do I get it to stop changing colors?


The behavior you are seeing sounds correct for a Cocoa disclosure triangle, so I would say your code is successful.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜