//
|
// HomeDetailAttachVC.swift
|
// BrokerDriver
|
//
|
// Created by 无故事王国 on 2023/4/25.
|
//
|
|
import UIKit
|
|
class HomeDetailAttachVC: BaseViewController {
|
|
@IBOutlet weak var attachTableView: UITableView!
|
override func viewDidLoad() {
|
super.viewDidLoad()
|
|
view.backgroundColor = UIColor(hexStr: "#F9FAFF")
|
attachTableView.delegate = self
|
attachTableView.dataSource = self
|
attachTableView.separatorStyle = .none
|
attachTableView.register(UINib(nibName: "AttachHeadView", bundle: nil), forHeaderFooterViewReuseIdentifier: "_AttachHeadView")
|
attachTableView.register(UINib(nibName: "AttachTCell", bundle: nil), forCellReuseIdentifier: "_AttachTCell")
|
}
|
}
|
|
extension HomeDetailAttachVC:UITableViewDelegate{
|
|
}
|
|
extension HomeDetailAttachVC:UITableViewDataSource{
|
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
|
return 20
|
}
|
|
func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
|
let headView = tableView.dequeueReusableHeaderFooterView(withIdentifier: "_AttachHeadView") as? AttachHeadView
|
return headView
|
}
|
|
func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
|
return 46
|
}
|
|
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
|
let cell = tableView.dequeueReusableCell(withIdentifier: "_AttachTCell") as! AttachTCell
|
return cell
|
}
|
|
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
|
return 46
|
}
|
}
|