开发者

How to make a Cocoa Disclosure Triangle

开发者 https://www.devze.com 2022-12-18 17:44 出处:网络
I have most of the code that works [self.开发者_如何学运维disclosureButton setBezelStyle:NSDisclosureBezelStyle];

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

精彩评论

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