【发布时间】:2016-05-19 14:45:05
【问题描述】:
我已经尝试过这样做:
在表格视图后面添加了一个橙色视图。
对于某个单元格隐藏 alpha = 0 的所有元素
-
试图使单元格透明,以便在滚动时在表格视图后面显示橙色视图:
cell2.backgroundColor = UIColor.clearColor() cell2.backgroundView = nil cell2.backgroundView?.backgroundColor = UIColor.clearColor() -
试图使表格视图透明,以便显示后面的橙色视图
tableView.backgroundColor = UIColor.clearColor() tableView.opaque = false tableView.backgroundView = nil
但是当我滚动到我的单元格时,我看不到表格视图后面的橙色视图,它只显示一个灰色的单元格。
谁能给我任何提示,告诉我我还应该做什么?
谢谢
【问题讨论】:
标签: swift tableview transparency tableviewcell