How to increase the height of NSTableHeaderView?

后端 未结 3 860
天涯浪人
天涯浪人 2021-02-04 22:19

I need to implement a headerview with specific size and gradient. I have to insert images in certain cells of the headerview.Tried to create the cells

3条回答
  •  无人及你
    2021-02-04 22:35

    You can also create a NSTableHeaderView object, initialize it with a frame(rect with height and width) and set that NSTableHeaderView object to your table view.

     NSTableHeaderView *tableHeaderView = [[NSTableHeaderView alloc] initWithFrame:NSMakeRect(0, 0, 120, 60)];
        [myTableView setHeaderView:tableHeaderView];
    [tableHeaderView release];
    

提交回复
热议问题