NSTableView 行的无缝背景色

问题描述

我想为 tableview 行创建一个无缝背景颜色,但是我看到它在单元格的末尾中断,我怀疑这是 imageView 所在的部分。在 NSTableView 的整行上拥有连续颜色的最佳方法是什么,就像alternateRow 颜色一样?这是我做的时候得到的

    cellView.wantsLayer = YES;
    cellView.layer.backgroundColor = [NSColor redColor].CGColor;

enter image description here

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)