CNLiveAlbumImageCell.swift 1.38 KB
//
//  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
    }
    
    
}