CNLiveAlbumImageCell.swift
1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//
// CNLiveAlbumImageCell.swift
// metaCode
//
// Created by zx on 2024/1/8.
// 短剧详情页大图cell
import Foundation
class CNLiveAlbumImageCell:UITableViewCell{
//MARK: - 懒加载
lazy var iconImgView :UIImageView = {
let iconImgView = UIImageView(frame: CGRect(x: 0, y: 0, width: KSreenWidth, height: KSreenWidth))
iconImgView.contentMode = .scaleAspectFill
return iconImgView
}()
lazy var titleLabel: UILabel = {
let titleLbl = UILabel(frame: CGRect(x: DownSlideRecommendLeftGap, y: DownSlideRecommendLeftGap+get_system_statusBar_height(), width: KSreenWidth-DownSlideRecommendLeftGap*2, height: 30))
titleLbl.font = BoldFont_21
titleLbl.textColor = HexColor("#FFFFFF")
return titleLbl
}()
override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
super.init(style: style, reuseIdentifier: reuseIdentifier)
self.selectionStyle = .none
setupUI()
}
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
private func setupUI() {
contentView.backgroundColor = HexColor(kCNDownSlideBackgroundColorHex)
self.contentView.addSubview(self.iconImgView)
// self.contentView.addSubview(self.titleLabel)
self.contentView.clipsToBounds = true
}
}