37 lines
717 B
Swift
37 lines
717 B
Swift
//
|
|
// TableViewCell.swift
|
|
// Guibe
|
|
//
|
|
// Created by Max Hunt on 31/05/2019.
|
|
// Copyright © 2019 8. All rights reserved.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
protocol tableViewProtocol {
|
|
func onClickCell(index: Int)
|
|
}
|
|
|
|
class TableViewCell: UITableViewCell {
|
|
|
|
@IBOutlet weak var cellLbl: UILabel!
|
|
|
|
var cellDelegate: tableViewProtocol?
|
|
var index: IndexPath?
|
|
|
|
|
|
@IBAction func goPressed(_ sender: Any) {
|
|
cellDelegate?.onClickCell(index: (index?.row)!)
|
|
}
|
|
|
|
override func awakeFromNib() {
|
|
super.awakeFromNib()
|
|
// Initialization code
|
|
}
|
|
|
|
override func setSelected(_ selected: Bool, animated: Bool) {
|
|
super.setSelected(selected, animated: animated)
|
|
}
|
|
|
|
}
|