0
인터페이스에 NSColorWells가 있지만 setColor : NSColor를 호출하면 색상이 바뀌지 않습니다. 이 방법은 다음과 같습니다.내 응용 프로그램의 [NSColorWell setColor : NSColor]
- (IBAction)randomColor:(id)sender {
int size = 255;
int R = arc4random_uniform(size);
int G = arc4random_uniform(size);
int B = arc4random_uniform(size);
NSColor *newcolor = [NSColor colorWithCalibratedRed:R green:G blue:B alpha:1.0];
[self.colorwell setColor:newcolor];
}
무슨 문제일까요? TBlue 상기 무엇
색상 구성 요소 값이 1보다? –