35 lines
930 B
Swift
35 lines
930 B
Swift
//
|
|
// MPPositive_DefaultTableView.swift
|
|
// relax.offline.mp3.music
|
|
//
|
|
// Created by Mr.Zhou on 2024/12/24.
|
|
//
|
|
|
|
import UIKit
|
|
///默认tableView
|
|
class MPPositive_DefaultTableView: UITableView {
|
|
|
|
override init(frame: CGRect, style: UITableView.Style) {
|
|
super.init(frame: frame, style: style)
|
|
configure()
|
|
}
|
|
|
|
required init?(coder: NSCoder) {
|
|
super.init(coder: coder)
|
|
configure()
|
|
}
|
|
//通用配置
|
|
private func configure() {
|
|
self.backgroundColor = .clear
|
|
self.showsVerticalScrollIndicator = false
|
|
self.showsHorizontalScrollIndicator = false
|
|
self.separatorStyle = .none
|
|
self.estimatedRowHeight = 200
|
|
self.rowHeight = UITableView.automaticDimension
|
|
self.contentInset = .init(top: 0, left: 0, bottom: 70*width, right: 0)
|
|
if #available(iOS 15.0, *) {
|
|
self.sectionHeaderTopPadding = 0
|
|
}
|
|
}
|
|
}
|