Skip to content

Instantly share code, notes, and snippets.

@codedeman
Last active August 18, 2022 04:34
Show Gist options
  • Save codedeman/21ddfa24b9216a02c65b6e33f6d7a145 to your computer and use it in GitHub Desktop.
Save codedeman/21ddfa24b9216a02c65b6e33f6d7a145 to your computer and use it in GitHub Desktop.
self-sizing-tableview
//
// CinemaListCell.swift
// AppLab
//
// Created by Pham Kien on 11.06.22.
//
import UIKit
import SDWebImage
protocol CinemaCellDelegate:AnyObject {
func loadImageCompleted(index:Int)
}
class CinemaListCell: UITableViewCell {
static let nib = UINib.init(nibName:"\(CinemaListCell.self)" , bundle: nil)
static let identifier:String = "\(CinemaListCell.self)"
@IBOutlet weak var vMain: UIView!
@IBOutlet weak var vBoard: UIView!
@IBOutlet weak var lblTitle: UILabel!
@IBOutlet weak var lblSubtitle: UILabel!
@IBOutlet weak var ivFilm: UIImageView!
@IBOutlet weak var cImageHeight: NSLayoutConstraint!
var indexRow:Int!
weak var delegate:CinemaCellDelegate!
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment