title: Table View Cell with a Textfield
body: <p>I have a subclass, CustomCell, which inherits from my parent class, CreateEvent. The subclass describes the individual cells for the table view cell, which is on the CreateEvent View controller. In one specific cell, I have a textfield, that is linked to the CustomCell file, but I am having trouble getting the value from that textfield when a user enters into the textfield. I am also having trouble dismissing the keyboard with outside touches and pressing the return key, but I am primarily focused on getting the text from the textfield. I am familiar with doing these functionalities on a normal swift file but because this is a subclass, I'm not sure what to do. What I've tried is to use:</p>
  
  <pre><code>class CustomCell: UITableViewCell, UITextFieldDelegate {
  
  @IBOutlet weak var entranceFeeTextField: UITextField!
  
  override func awakeFromNib() {
       super.awakeFromNib()
  
  }
  
  override func setSelected(selected: Bool, animated: Bool) {
       super.setSelected(selected, animated: animated)
  }
  </code></pre>
  
  <p>And: </p>
  
  <pre><code>class CreateEventVC: UIViewController, UITableViewDelegate, UITableViewDataSource, CustomCellDelegate, UITextFieldDelegate {
  
  override func viewDidLoad() {
  }
  
  override func viewWillAppear(_ animated: Bool) {
      super.viewWillAppear(animated)
  
  }
  
  func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell {
      let currentCellDescriptor = getCellDescriptorForIndexPath(indexPath)
      let cell = tableView.dequeueReusableCell(withIdentifier: currentCellDescriptor["cellIdentifier"] as! String, for: indexPath) as! CustomCell
  
  
      cell.entranceFeeTextField.delegate = self
  
      entranceFeeAmount = cell.entranceFeeTextField.text!
  }
  </code></pre>
  
  <p>This code doesn't run and I'm not exactly sure which textfield delegates I need to run in order to be able to get the Text value from the textfield. </p>