相关疑难解决方法(0)

UITableViewCell多选的选定背景颜色

// Doesn't work
cell.selectionStyle = .Blue
//Works when the selection is not multiple, if it's multiple with each selection the previous one disappear...
let cellBGView = UIView()
cellBGView.backgroundColor = UIColor(red: 0, green: 0, blue: 200, alpha: 0.4)
cell.selectedBackgroundView = cellBGView
Run Code Online (Sandbox Code Playgroud)

任何答案如何设置所选单元格的背景颜色?

selection selected uitableview ios swift

42
推荐指数
8
解决办法
9万
查看次数

标签 统计

ios ×1

selected ×1

selection ×1

swift ×1

uitableview ×1