聚合云播

排序

刑事剧情简介

"// let introHTML = try NSAttributedString(data: intro.data(using: .unicode)!, options: [NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType], documentAttributes: nil)// // let tableView = UITableView(frame: .zero, style: .plain)// tableView.register(___VARIABLE_cellReuseIdentifier___Cell.self, forCellReuseIdentifier: "Cell")// tableView.estimatedRowHeight = 44// tableView.rowHeight = UITableViewAutomaticDimension// tableView.tableHeaderView = header// tableView.tableFooterView = UIView()// tableView.delegate = self// tableView.dataSource = self// return tableView// }()//// //}//MARK: 大图class ___VARIABLE_className___: UIView { var model: ___VARIABLE_cellReuseIdentifier___Model? { didSet { guard let model = model else { return } image.kf.setImage(with: URL(string: model.url), placeholder: UIImage(named: "hh_doctor_photo_default")) title.text = model.title } } private lazy var image: UIImageView = { let image = UIImageView() image.isUserInteractionEnabled = true image.contentMode = .scaleAspectFit return image }() private lazy var title: UILabel = { let label = UILabel() label.font = UIFont.systemFont(ofSize: 14) label.textColor = UIColor.black label.numberOfLines = 2 return label }() override init(frame: CGRect) { super.init(frame: frame) addSubview(image) addSubview(title) image.snp.makeConstraints { (make) in make.top.left.right.equalToSuperview() make.height.equalTo(self.snp.width).multipliedBy(0.7) } title.snp.makeConstraints { (make) in make.top.equalTo(self.image.snp.bottom).offset(10) make.left.right.bottom.equalToSuperview() } } required init?(coder aDecoder: NSCoder) { super.init(coder: aDecoder) }}//MARK: 纯文字class ___VARIABLE_className___: UIView { var model: ___VARIABLE_cellReuseIdentifier___Model? { didSet { guard let model = model else { return } title.text = model.title } } lazy var title: UILabel = { let label = UILabel() label.font = UIFont.systemFont(ofSize: 14) label.textColor = UIColor.black label.numberOfLines = 0 return label }() override init(frame: CGRect) { super.init(frame: frame) addSubview(title) title.snp.makeConstraints { (make) in make.top.left.right.equalToSuperview() make.bottom.equalToSuperview().offset(-10) } } required init?(coder aDecoder: NSCoder) { super.init(coder: aDecoder) }}//MARK: 其他class ___VARIABLE_className___: UIView { }//MARK: 多图//class ___VARIABLE_className___: UIView {// // private var rowCount: Int {// get {// return CGFloat(images.count).square() / 3// }// }// // private lazy var images: [UIImageView] = {// var images = Array()// for _ in 0..<9 {// let image = UIImageView()// image.translatesAutoresizingMaskIntoConstraints = false// image.isUserInteractionEnabled = true// image.contentMode = .scaleAspectFill// images.append(image)// }// return images// }()// // var models = [___VARIABLE_cellReuseIdentifier___Model]() {// didSet {// guard models.count <= 9 else {// return// }// for i in 0..

猜你喜欢

傲慢与偏见与僵尸

2016/美国/英国/动作,爱情,恐怖

海军上将

2015/荷兰/动作,传记,历史

血浓于水

2022/韩国/动作

协商

2018/韩国/动作,悬疑,犯罪

攻陷葛兰高地

1989/澳大利亚/菲律宾/剧情,动作,战争