43 lines
868 B
Swift
43 lines
868 B
Swift
//
|
|
// NewTableViewCell.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 NewTableViewCell: UITableViewCell {
|
|
|
|
@IBOutlet weak var primaryLbl: UILabel!
|
|
@IBOutlet weak var secondaryLbl: UILabel!
|
|
@IBOutlet weak var goBtn: UIButton!
|
|
|
|
|
|
@IBAction func goPressed(_ sender: Any) {
|
|
cellDelegate?.onClickCell(index: (index?.row)!)
|
|
}
|
|
|
|
var cellDelegate: tableViewProtocol?
|
|
var index: IndexPath?
|
|
|
|
override func awakeFromNib() {
|
|
super.awakeFromNib()
|
|
// Initialization code
|
|
}
|
|
|
|
override func setSelected(_ selected: Bool, animated: Bool) {
|
|
super.setSelected(selected, animated: animated)
|
|
|
|
// Configure the view for the selected state
|
|
}
|
|
|
|
}
|