-
这种表格交替效果,可以直接在UI里设置,代码也可以设置
image.png
-
先左侧选中你的tableView
image.png
-
在右侧属性列表里勾选
Alternating Rows
image.png
-
代码设置
tableView.usesAlternatingRowBackgroundColors = true
这种表格交替效果,可以直接在UI里设置,代码也可以设置
先左侧选中你的tableView
在右侧属性列表里勾选 Alternating Rows
代码设置 tableView.usesAlternatingRowBackgroundColors = true
本文标题:MacOS-NSTableView设置颜色交替
本文链接:https://www.haomeiwen.com/subject/pglpghtx.html
网友评论