【发布时间】:2021-06-17 14:58:13
【问题描述】:
我对 iOS swift 比较陌生,但是这样做有区别
class MyCustomHeaderSection: UITableViewHeaderFooterView
{
...
}
myTableView.register(MyCustomHeaderSection.self, forHeaderFooterViewReuseIdentifier: "section_header")
还有下面的方法
class MyCustomHeaderSection: UITableViewCell
{
...
}
myTableView.register(MyCustomHeaderSection.self, forCellReuseIdentifier: "section_header")
【问题讨论】:
标签: ios swift uitableview