You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

56 lines
1.2 KiB

//
// TableViewCell.swift
// FireBoltt
//
// Created by lemo. on 2020/3/29.
// Copyright © 2020 Sheldon. All rights reserved.
//
import UIKit
class TableViewCell: UITableViewCell {
var cellDisposeBag = DisposeBag()
override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
super.init(style: style, reuseIdentifier: reuseIdentifier)
makeUI()
}
override func awakeFromNib() {
super.awakeFromNib()
// selectionStyle = .default
// backgroundColor = .white
makeUI()
}
required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
makeUI()
}
override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
}
func makeUI() {
layer.masksToBounds = true
selectionStyle = .default
backgroundColor = .white
updateUI()
}
func updateUI() {
setNeedsDisplay()
}
override func prepareForReuse() {
super.prepareForReuse()
cellDisposeBag = DisposeBag()
}
func bind(model: ViewModel) {
}
}