AliSoftware / AliSoftware/Reusable

UITableViewHeaderFooterView - Warning with NibReusable

未關閉
#121 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Swift
星號
3k
分支
231
PR 合併指標
30 天內沒有已合併 PR

描述

I'm trying to use the NibReusable for the HeaderFooterView for a TableView but i'm getting a warning in console:

`[TableView] Changing the background color of UITableViewHeaderFooterView is not supported. Use the background view configuration instead.`

But i'm not changing any background color in my view as you can see below. No warning if i'm just using a UIView without the dequeueReusable logic

```
import Reusable

class ShoppingListHeaderView: UITableViewHeaderFooterView, NibReusable {
@IBOutlet private weak var titleLabel: UILabel!
@IBOutlet private weak var iconImageView: UIImageView!
@IBOutlet private weak var button: UIButton!

override func awakeFromNib() {
super.awakeFromNib()

iconImageView.isHidden = true
iconImageView.tintColor = Asset.Colors.purple1F.color

titleLabel.textColor = Asset.Colors.black.color
titleLabel.textAlignment = .left
titleLabel.font = RawFonts.latoBold.font(size: 16)
}

func configure(text: String) {
titleLabel.text = text
}
}
```

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。