You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
// // MoneyRequestTableViewCell.swift // GMERemittance // // Created by Sujal on 3/5/18. // Copyright © 2018 Gobal Money Express Co. Ltd. All rights reserved. //
import UIKit
protocol MoneyRequestDelegate: class { func readMessage(_ sender: MoneyRequestTableViewCell) func acceptRequest(_ sender: MoneyRequestTableViewCell) func declineRequest(_ sender: MoneyRequestTableViewCell) }
class MoneyRequestTableViewCell: UITableViewCell { @IBOutlet weak var labelInitial: UILabel! @IBOutlet weak var labelName: UILabel! @IBOutlet weak var labelGMEID: UILabel! @IBOutlet weak var labelAmount: UILabel! @IBOutlet weak var labelDateTime: UILabel! weak var delegate: MoneyRequestDelegate? 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 } @IBAction func readMessage(_ sender: Any) { delegate?.readMessage(self) } @IBAction func declineRequest(_ sender: Any) { delegate?.declineRequest(self) } @IBAction func acceptRequest(_ sender: Any) { delegate?.acceptRequest(self) } }
|