// // BrandForWithdrawCell.swift // xingchuangke // // Created by 李晓飞 on 2020/9/7. // Copyright © 2020 Virgil. All rights reserved. // import UIKit typealias TotalBlock = () -> Void class BrandForWithdrawCell: UITableViewCell { @IBOutlet weak var brandLabel: UILabel! @IBOutlet weak var earnTextField: UITextField! var dataDic: NSDictionary! var totalBlock: TotalBlock? override func awakeFromNib() { super.awakeFromNib() // Initialization code } @IBAction func btnClicked(_ sender: Any) { earnTextField.text = "\(getDoubleValue(dic: dataDic, key: "profitBalance"))" if totalBlock != nil { totalBlock!() } } override func setSelected(_ selected: Bool, animated: Bool) { super.setSelected(selected, animated: animated) // Configure the view for the selected state } }