【发布时间】:2014-01-26 11:30:40
【问题描述】:
我正在使用https://github.com/kelan/yrk-spinning-progress-indicator 来获得一个白色的微调器。请注意,这不是 NSProgressIndicator 的子类,而是自定义的 NSView。
问题是这个自定义视图的角显示为白色,而不仅仅是一个清晰的背景。你可以在这张图片中看到这一点:
这是我的代码:
[_statusProgressIndicator setColor:[NSColor whiteColor]];
[_statusProgressIndicator setIndeterminate:YES];
[_statusProgressIndicator setBackgroundColor:[NSColor clearColor]];
[_statusProgressIndicator setDrawsBackground:YES];
[_statusProgressIndicator startAnimation:self];
我也试过了:
[_statusProgressIndicator setDrawsBackground:NO];
但效果是一样的。
关于如何解决这个问题的任何想法?
【问题讨论】:
标签: objective-c cocoa nsview nsprogressindicator