我正在尝试为 TableViewHeader 设置透明背景但没有成功。首先,想知道这是否可能?
这就是我所做的
func tableView(tableView: UITableView, willDisplayHeaderView view: UIView, forSection section: Int) {
let header: UITableViewHeaderFooterView = view as! UITableViewHeaderFooterView
header.contentView.backgroundColor = UIColor.clearColor()
}
我的最终目标是在我的 uitableview 下添加一个 UIView,它将托管一个 GMSMapView 并具有一个大小为 100px 的透明 HeaderView。
有什么帮助吗?谢谢