2011-10-06 5 views
12

투명한 배경으로 NSScrollView를 만들 수 없습니다. 아무도 이유를 아나요? 나는이 일을해야 귀하의 경우 생각OSX/Cocoa - 투명 배경이있는 NSScrollView

NSScrollView *textScroll = [[NSScrollView alloc] initWithFrame:CGRectMake(212, 203, 381, 55)]; 
[textScroll setBackgroundColor:[NSColor clearColor]]; 
[view addSubview:textScroll]; 

답변

36

:

[textScroll setDrawsBackground:NO]; 
여기 내 코드입니다
관련 문제