Last active
August 18, 2022 04:34
-
-
Save codedeman/21ddfa24b9216a02c65b6e33f6d7a145 to your computer and use it in GitHub Desktop.
self-sizing-tableview
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// 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