2013-10-01 4 views

답변

0

해당 열의 각 셀의 색을 변경할 수 있습니다. 다음과 같은 종류가 있습니다 :

- (NSView*)tableView:(NSTableView*)tableView viewForTableColumn:(NSTableColumn*)tableColumn 
       row:(NSInteger)row 
{ 
    //make cell 
    ... 
    if([tableColumn.identifier isEqual:@(0)) 
    { 
     cellView.drawsBackground = YES; 
     cellView.backgroundColor = [NSColor lightGrayColor]; 
    } 
} 
+0

감사합니다. 질문 : 원래 색상을 어떻게 복원합니까? tableview에는 일종의 그리드 색상이 있기 때문에 이전 색상을 설정할 수 없습니다. http://cl.ly/image/1z0X0M2l3k3H – aneuryzm

관련 문제